MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / searcher_Lua

Function searcher_Lua

Dependencies/lua/src/loadlib.c:536–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534
535
536static int searcher_Lua (lua_State *L) {
537 const char *filename;
538 const char *name = luaL_checkstring(L, 1);
539 filename = findfile(L, name, "path", LUA_LSUBSEP);
540 if (filename == NULL) return 1; /* module not found in this path */
541 return checkload(L, (luaL_loadfile(L, filename) == LUA_OK), filename);
542}
543
544
545/*

Callers

nothing calls this directly

Calls 2

findfileFunction · 0.85
checkloadFunction · 0.85

Tested by

no test coverage detected