MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / searcher_preload

Function searcher_preload

source/extern/lua/loadlib.c:560–566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558
559
560static int searcher_preload (lua_State *L) {
561 const char *name = luaL_checkstring(L, 1);
562 lua_getfield(L, LUA_REGISTRYINDEX, LUA_PRELOAD_TABLE);
563 if (lua_getfield(L, -1, name) == LUA_TNIL) /* not found? */
564 lua_pushfstring(L, "\n\tno field package.preload['%s']", name);
565 return 1;
566}
567
568
569static void findloader (lua_State *L, const char *name) {

Callers

nothing calls this directly

Calls 2

lua_getfieldFunction · 0.85
lua_pushfstringFunction · 0.85

Tested by

no test coverage detected