MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / lua_cpcall

Function lua_cpcall

lua/lapi.c:857–866  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

855
856
857LUA_API int lua_cpcall (lua_State *L, lua_CFunction func, void *ud) {
858 struct CCallS c;
859 int status;
860 lua_lock(L);
861 c.func = func;
862 c.ud = ud;
863 status = luaD_pcall(L, f_Ccall, &c, savestack(L, L->top), 0);
864 lua_unlock(L);
865 return status;
866}
867
868
869LUA_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