lua: pop error

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-07-10 09:48:23 +02:00
parent 50ff37a17e
commit 2a5eba569d
1 changed files with 3 additions and 0 deletions

3
lua.h
View File

@ -85,8 +85,11 @@ typedef int luaA_function;
if(n) \
lua_insert(L, - (n + 1)); \
if(lua_pcall(L, n, r, 0)) \
{ \
warn("error running function: %s", \
lua_tostring(L, -1)); \
lua_pop(L, 1); \
} \
} \
} while(0)