MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / findfile

Function findfile

third-party/lua-5.5.0/src/loadlib.c:516–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

searcher_LuaFunction · 0.70
searcher_CFunction · 0.70
searcher_CrootFunction · 0.70

Calls 4

lua_upvalueindexFunction · 0.85
lua_getfieldFunction · 0.70
luaL_errorFunction · 0.70
searchpathFunction · 0.70

Tested by

no test coverage detected