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

Function searcher_Lua

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

luaL_loadfileFunction · 0.85
findfileFunction · 0.70
checkloadFunction · 0.70

Tested by

no test coverage detected