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

Function searcher_Lua

third-party/lua-5.2.4/src/loadlib.c:410–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408
409
410static int searcher_Lua (lua_State *L) {
411 const char *filename;
412 const char *name = luaL_checkstring(L, 1);
413 filename = findfile(L, name, "path", LUA_LSUBSEP);
414 if (filename == NULL) return 1; /* module not found in this path */
415 return checkload(L, (luaL_loadfile(L, filename) == LUA_OK), filename);
416}
417
418
419static int loadfunc (lua_State *L, const char *filename, const char *modname) {

Callers

nothing calls this directly

Calls 3

luaL_loadfileFunction · 0.85
findfileFunction · 0.70
checkloadFunction · 0.70

Tested by

no test coverage detected