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

Function loader_C

Source/Misc/lua/src/lua.c:13170–13179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13168
13169
13170static int loader_C (lua_State *L) {
13171const char *funcname;
13172const char *name = luaL_checkstring(L, 1);
13173const char *filename = findfile(L, name, "cpath");
13174if (filename == NULL) return 1; /* library not found in this path */
13175funcname = mkfuncname(L, name);
13176if (ll_loadfunc(L, filename, funcname) != 0)
13177loaderror(L, filename);
13178return 1; /* library loaded successfully */
13179}
13180
13181
13182static int loader_Croot (lua_State *L) {

Callers

nothing calls this directly

Calls 4

findfileFunction · 0.85
mkfuncnameFunction · 0.85
ll_loadfuncFunction · 0.85
loaderrorFunction · 0.85

Tested by

no test coverage detected