diff options
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 1.187 2002/05/02 16:55:55 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 1.188 2002/05/06 15:51:41 roberto Exp roberto $ |
3 | ** Lua API | 3 | ** Lua API |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -641,11 +641,12 @@ LUA_API void lua_setgcthreshold (lua_State *L, int newthreshold) { | |||
641 | */ | 641 | */ |
642 | 642 | ||
643 | 643 | ||
644 | LUA_API void lua_errorobj (lua_State *L) { | 644 | LUA_API int lua_errorobj (lua_State *L) { |
645 | lua_lock(L); | 645 | lua_lock(L); |
646 | api_checknelems(L, 1); | 646 | api_checknelems(L, 1); |
647 | luaD_errorobj(L, L->top - 1, LUA_ERRRUN); | 647 | luaD_errorobj(L, L->top - 1, LUA_ERRRUN); |
648 | lua_unlock(L); | 648 | lua_unlock(L); |
649 | return 0; /* to avoid warnings */ | ||
649 | } | 650 | } |
650 | 651 | ||
651 | 652 | ||