| 1020 | |
| 1021 | |
| 1022 | static int panic (lua_State *L) { |
| 1023 | const char *msg = lua_tostring(L, -1); |
| 1024 | if (msg == NULL) msg = "error object is not a string"; |
| 1025 | lua_writestringerror("PANIC: unprotected error in call to Lua API (%s)\n", |
| 1026 | msg); |
| 1027 | return 0; /* return to Lua to abort */ |
| 1028 | } |
| 1029 | |
| 1030 | |
| 1031 | /* |
nothing calls this directly
no outgoing calls
no test coverage detected