lua-users home
lua-l archive

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


Hello.

Lua' debug is confusing the hell out of me, currently I have this:

if (lua_pcall(L, 2, 1, 0) != 0)
{
lua_pushstring(L,"doerror");
lua_gettable(L, LUA_GLOBALSINDEX);
lua_call(L, 0, 0);
}

where doerror is :

function doerror()
debug.traceback()
end

Would this work ? Do I need to do a lua_pcall ? Why cant
I do a stack backtrace from the panic function ?

Thanks.
--
Reyn Vlietstra