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

Function searcher_Lua

extlibs/lua/src/loadlib.c:538–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

findfileFunction · 0.85
checkloadFunction · 0.85

Tested by

no test coverage detected