lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]




But are sure it is not begin unwound after that (that is, when
lua_pcall returns)?


Yes, look at the following C stack trace. This is the complete C stack at the next event after the error. Variable nCcalls is 196 when enterlevel executes below.

enterlevel(LexState * ls)  Line 331 C
statement(LexState * ls)  Line 1504 + 0x9 bytes C
statlist(LexState * ls)  Line 615 + 0x9 bytes C
luaY_parser(lua_State * L, Zio * z, Mbuffer * buff, Dyndata * dyd, const char * name, int firstchar)  Line 1593 + 0x9 bytes C
f_parser(lua_State * L, void * ud)  Line 625 + 0x59 bytes C
luaD_rawrunprotected(lua_State * L, void (lua_State *, void *)* f, void * ud)  Line 133 + 0x1f bytes C
luaD_pcall(lua_State * L, void (lua_State *, void *)* func, void * u, int old_top, int ef)  Line 591 + 0x11 bytes C
luaD_protectedparser(lua_State * L, Zio * z, const char * name)  Line 644 + 0x26 bytes C
lua_load(lua_State * L, const char * (lua_State *, void *, unsigned int *)* reader, void * data, const char * chunkname)  Line 923 + 0x11 bytes C
luaL_loadbuffer(lua_State * L, const char * buff, unsigned int size, const char * name)  Line 692 + 0x16 bytes C

-Will