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

Function ll_loadfunc

Source/Misc/lua/src/lua.c:13062–13074  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13060
13061
13062static int ll_loadfunc (lua_State *L, const char *path, const char *sym) {
13063void **reg = ll_register(L, path);
13064if (*reg == NULL) *reg = ll_load(L, path);
13065if (*reg == NULL)
13066return ERRLIB; /* unable to load library */
13067else {
13068lua_CFunction f = ll_sym(L, *reg, sym);
13069if (f == NULL)
13070return ERRFUNC; /* unable to find function */
13071lua_pushcfunction(L, f);
13072return 0; /* return function */
13073}
13074}
13075
13076
13077static 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