** Hook set by signal function to stop the interpreter. */
| 41 | ** Hook set by signal function to stop the interpreter. |
| 42 | */ |
| 43 | static void lstop (lua_State *L, lua_Debug *ar) { |
| 44 | (void)ar; /* unused arg. */ |
| 45 | lua_sethook(L, NULL, 0, 0); /* reset hook */ |
| 46 | luaL_error(L, "interrupted!"); |
| 47 | } |
| 48 | |
| 49 | |
| 50 | /* |
nothing calls this directly
no test coverage detected