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

Function finalize

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

Source from the content-addressed store, hash-verified

43}
44
45static int finalize(lua_State *L) {
46 if (!lua_toboolean(L, 1)) {
47 lua_pushvalue(L, lua_upvalueindex(2));
48 lua_call(L, 0, 0);
49 lua_settop(L, 2);
50 wrap(L);
51 lua_error(L);
52 return 0;
53 } else return lua_gettop(L);
54}
55
56static int do_nothing(lua_State *L) {
57 (void) L;

Callers

nothing calls this directly

Calls 6

lua_tobooleanFunction · 0.85
lua_pushvalueFunction · 0.85
lua_settopFunction · 0.85
wrapFunction · 0.85
lua_errorFunction · 0.85
lua_gettopFunction · 0.85

Tested by

no test coverage detected