MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / lua_cpcall

Function lua_cpcall

deps/lua/src/lapi.c:850–859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

848
849
850LUA_API int lua_cpcall (lua_State *L, lua_CFunction func, void *ud) {
851 struct CCallS c;
852 int status;
853 lua_lock(L);
854 c.func = func;
855 c.ud = ud;
856 status = luaD_pcall(L, f_Ccall, &c, savestack(L, L->top), 0);
857 lua_unlock(L);
858 return status;
859}
860
861
862LUA_API int lua_load (lua_State *L, lua_Reader reader, void *data,

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 1

luaD_pcallFunction · 0.85

Tested by

no test coverage detected