lua-users home
lua-l archive

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


L = luaL_newstate();
/* Install panic handler here */
luaL_error(L, "Oops, no enclosing lua_pcall");

On Tue, Jan 22, 2013 at 4:23 PM, Noah Watkins <jayhawk@cs.ucsc.edu> wrote:
Hi,

I have a custom error handler installed using lua_atpanic. Is there a convenient way to trigger a panic in order to test/debug the handler?

Thanks,
-Noah