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

Function ll_loadfunc

other_src/lua/src/loadlib.cpp:309–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307
308
309static int ll_loadfunc (lua_State *L, const char *path, const char *sym) {
310 void **reg = ll_register(L, path);
311 if (*reg == NULL) *reg = ll_load(L, path);
312 if (*reg == NULL)
313 return ERRLIB; /* unable to load library */
314 else {
315 lua_CFunction f = ll_sym(L, *reg, sym);
316 if (f == NULL)
317 return ERRFUNC; /* unable to find function */
318 lua_pushcfunction(L, f);
319 return 0; /* return function */
320 }
321}
322
323
324static int ll_loadlib (lua_State *L) {

Callers 3

ll_loadlibFunction · 0.70
loader_CFunction · 0.70
loader_CrootFunction · 0.70

Calls 3

ll_registerFunction · 0.70
ll_loadFunction · 0.70
ll_symFunction · 0.70

Tested by

no test coverage detected