Lua state
C lua_State registered function
the old panic functio
Note: The panic function can access the error message at the top of the stack. If an error happens outside any protected environment, Lua calls a panic function and then calls exit(EXIT_FAILURE), thus exiting the host application. Your panic function can avoid this exit by never returning (e.g., doing a long jump).
Sets a new panic function