MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / lua_cpcall

Function lua_cpcall

Source/Misc/lua/src/lua.c:2699–2708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2697
2698
2699LUA_API int lua_cpcall (lua_State *L, lua_CFunction func, void *ud) {
2700struct CCallS c;
2701int status;
2702lua_lock(L);
2703c.func = func;
2704c.ud = ud;
2705status = luaD_pcall(L, f_Ccall, &c, savestack(L, L->top), 0);
2706lua_unlock(L);
2707return status;
2708}
2709
2710
2711LUA_API int lua_load (lua_State *L, lua_Reader reader, void *data,

Callers

nothing calls this directly

Calls 1

luaD_pcallFunction · 0.85

Tested by

no test coverage detected