MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / lua_cpcall

Function lua_cpcall

other_src/lua/src/lapi.cpp:886–895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

884
885
886LUA_API int lua_cpcall (lua_State *L, lua_CFunction func, void *ud) {
887 struct CCallS c;
888 int status;
889 lua_lock(L);
890 c.func = func;
891 c.ud = ud;
892 status = luaD_pcall(L, f_Ccall, &c, savestack(L, L->top), 0);
893 lua_unlock(L);
894 return status;
895}
896
897
898LUA_API int lua_load (lua_State *L, lua_Reader reader, void *data,

Callers 2

mainFunction · 0.70
mainFunction · 0.70

Calls 1

luaD_pcallFunction · 0.70

Tested by

no test coverage detected