lua: pop error
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
50ff37a17e
commit
2a5eba569d
3
lua.h
3
lua.h
|
@ -85,8 +85,11 @@ typedef int luaA_function;
|
||||||
if(n) \
|
if(n) \
|
||||||
lua_insert(L, - (n + 1)); \
|
lua_insert(L, - (n + 1)); \
|
||||||
if(lua_pcall(L, n, r, 0)) \
|
if(lua_pcall(L, n, r, 0)) \
|
||||||
|
{ \
|
||||||
warn("error running function: %s", \
|
warn("error running function: %s", \
|
||||||
lua_tostring(L, -1)); \
|
lua_tostring(L, -1)); \
|
||||||
|
lua_pop(L, 1); \
|
||||||
|
} \
|
||||||
} \
|
} \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue