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

Function findfile

Dependencies/lua/src/loadlib.c:513–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511
512
513static const char *findfile (lua_State *L, const char *name,
514 const char *pname,
515 const char *dirsep) {
516 const char *path;
517 lua_getfield(L, lua_upvalueindex(1), pname);
518 path = lua_tostring(L, -1);
519 if (l_unlikely(path == NULL))
520 luaL_error(L, "'package.%s' must be a string", pname);
521 return searchpath(L, name, path, ".", dirsep);
522}
523
524
525static int checkload (lua_State *L, int stat, const char *filename) {

Callers 3

searcher_LuaFunction · 0.85
searcher_CFunction · 0.85
searcher_CrootFunction · 0.85

Calls 3

lua_getfieldFunction · 0.85
luaL_errorFunction · 0.85
searchpathFunction · 0.85

Tested by

no test coverage detected