|
Piece of pascal function registered by lua_atpanic:
Hey,lua_atpanic can only access the error message at the top of the stack. (see: http://www.lua.org/manual/5.1/manual.html#lua_atpanic)
I -believe- lua_pcall's 4th parameter, the error function, is allowed to access other values, so you could try using that instead. Which imo would be a better idea anyway, as atpanic shouldn't be used for general error handling.
(see: http://www.lua.org/manual/5.1/manual.html#lua_pcall)- Alex