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

Function protected_

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

Source from the content-addressed store, hash-verified

102#endif
103
104static 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
112static int global_protect(lua_State *L) {
113 lua_settop(L, 1);

Callers

nothing calls this directly

Calls 4

lua_pushvalueFunction · 0.85
lua_pcallkFunction · 0.85
lua_gettopFunction · 0.85
protected_finishFunction · 0.85

Tested by

no test coverage detected