Set a new panic handler.
new panic handler
auto L = luaL_newstate(); // found in luad.c.all auto lua = new LuaState(L); static void panic(LuaState lua, in char[] error) { throw new LuaErrorException(error.idup); } lua.setPanicHandler(&panic);
See Implementation
Set a new panic handler.