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

Function searcher_preload

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

Source from the content-addressed store, hash-verified

466
467
468static int searcher_preload (lua_State *L) {
469 const char *name = luaL_checkstring(L, 1);
470 lua_getfield(L, LUA_REGISTRYINDEX, "_PRELOAD");
471 lua_getfield(L, -1, name);
472 if (lua_isnil(L, -1)) /* not found? */
473 lua_pushfstring(L, "\n\tno field package.preload['%s']", name);
474 return 1;
475}
476
477
478static void findloader (lua_State *L, const char *name) {

Callers

nothing calls this directly

Calls 2

lua_getfieldFunction · 0.70
lua_pushfstringFunction · 0.70

Tested by

no test coverage detected