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

Function searcher_C

third-party/lua-5.4.6/src/loadlib.c:571–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

569
570
571static int searcher_C (lua_State *L) {
572 const char *name = luaL_checkstring(L, 1);
573 const char *filename = findfile(L, name, "cpath", LUA_CSUBSEP);
574 if (filename == NULL) return 1; /* module not found in this path */
575 return checkload(L, (loadfunc(L, filename, name) == 0), filename);
576}
577
578
579static int searcher_Croot (lua_State *L) {

Callers

nothing calls this directly

Calls 3

findfileFunction · 0.70
checkloadFunction · 0.70
loadfuncFunction · 0.70

Tested by

no test coverage detected