MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ll_loadfunc

Function ll_loadfunc

app/redis-6.2.6/deps/lua/src/loadlib.c:294–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292
293
294static int ll_loadfunc (lua_State *L, const char *path, const char *sym) {
295 void **reg = ll_register(L, path);
296 if (*reg == NULL) *reg = ll_load(L, path);
297 if (*reg == NULL)
298 return ERRLIB; /* unable to load library */
299 else {
300 lua_CFunction f = ll_sym(L, *reg, sym);
301 if (f == NULL)
302 return ERRFUNC; /* unable to find function */
303 lua_pushcfunction(L, f);
304 return 0; /* return function */
305 }
306}
307
308
309static int ll_loadlib (lua_State *L) {

Callers 3

ll_loadlibFunction · 0.85
loader_CFunction · 0.85
loader_CrootFunction · 0.85

Calls 3

ll_registerFunction · 0.85
ll_loadFunction · 0.85
ll_symFunction · 0.85

Tested by

no test coverage detected