From 71144e3ff0cb81bd9b8bb56d94dc76074c638c64 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy <roberto@inf.puc-rio.br> Date: Mon, 6 May 2002 16:05:10 -0300 Subject: errors `return' int, to avoid warnings + home-made `sprintf' (first version) --- lapi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lapi.c') diff --git a/lapi.c b/lapi.c index 54ec5f3b..fa05ca49 100644 --- a/lapi.c +++ b/lapi.c @@ -1,5 +1,5 @@ /* -** $Id: lapi.c,v 1.187 2002/05/02 16:55:55 roberto Exp roberto $ +** $Id: lapi.c,v 1.188 2002/05/06 15:51:41 roberto Exp roberto $ ** Lua API ** See Copyright Notice in lua.h */ @@ -641,11 +641,12 @@ LUA_API void lua_setgcthreshold (lua_State *L, int newthreshold) { */ -LUA_API void lua_errorobj (lua_State *L) { +LUA_API int lua_errorobj (lua_State *L) { lua_lock(L); api_checknelems(L, 1); luaD_errorobj(L, L->top - 1, LUA_ERRRUN); lua_unlock(L); + return 0; /* to avoid warnings */ } -- cgit v1.2.3-55-g6feb