[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: debug
- From: Reyn Vlietstra <reyn@...>
- Date: Tue, 09 Sep 2003 16:09:31 +0200
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