| 84 | } |
| 85 | |
| 86 | static int protected_finish(lua_State *L, int status, lua_KContext ctx) { |
| 87 | (void)ctx; |
| 88 | if (status != 0 && status != LUA_YIELD) { |
| 89 | if (unwrap(L)) return 2; |
| 90 | else return lua_error(L); |
| 91 | } else return lua_gettop(L); |
| 92 | } |
| 93 | |
| 94 | #if LUA_VERSION_NUM == 502 |
| 95 | static int protected_cont(lua_State *L) { |
no test coverage detected