MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / findfile

Function findfile

extlibs/lua/src/loadlib.c:515–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513
514
515static const char *findfile (lua_State *L, const char *name,
516 const char *pname,
517 const char *dirsep) {
518 const char *path;
519 lua_getfield(L, lua_upvalueindex(1), pname);
520 path = lua_tostring(L, -1);
521 if (path == NULL)
522 luaL_error(L, "'package.%s' must be a string", pname);
523 return searchpath(L, name, path, ".", dirsep);
524}
525
526
527static 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