MCPcopy Create free account
hub / github.com/Tencent/UnLua / protected_finish

Function protected_finish

Plugins/UnLuaExtensions/LuaSocket/Source/src/except.cpp:86–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86static 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
95static int protected_cont(lua_State *L) {

Callers 2

protected_contFunction · 0.85
protected_Function · 0.85

Calls 3

unwrapFunction · 0.85
lua_errorFunction · 0.85
lua_gettopFunction · 0.85

Tested by

no test coverage detected