| 102 | #endif |
| 103 | |
| 104 | static int protected_(lua_State *L) { |
| 105 | int status; |
| 106 | lua_pushvalue(L, lua_upvalueindex(2)); |
| 107 | lua_insert(L, 1); |
| 108 | status = lua_pcallk(L, lua_gettop(L) - 1, LUA_MULTRET, 0, 0, protected_cont); |
| 109 | return protected_finish(L, status, 0); |
| 110 | } |
| 111 | |
| 112 | static int global_protect(lua_State *L) { |
| 113 | lua_settop(L, 1); |
nothing calls this directly
no test coverage detected