** does a long-jump back to "main program". */
| 1242 | ** does a long-jump back to "main program". |
| 1243 | */ |
| 1244 | static int panicback (lua_State *L) { |
| 1245 | struct Aux *b; |
| 1246 | lua_checkstack(L, 1); /* open space for 'Aux' struct */ |
| 1247 | lua_getfield(L, LUA_REGISTRYINDEX, "_jmpbuf"); /* get 'Aux' struct */ |
| 1248 | b = (struct Aux *)lua_touserdata(L, -1); |
| 1249 | lua_pop(L, 1); /* remove 'Aux' struct */ |
| 1250 | runC(b->L, L, b->paniccode); /* run optional panic code */ |
| 1251 | longjmp(b->jb, 1); |
| 1252 | return 1; /* to avoid warnings */ |
| 1253 | } |
| 1254 | |
| 1255 | static int checkpanic (lua_State *L) { |
| 1256 | struct Aux b; |
nothing calls this directly
no test coverage detected