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

Function checkclib

third-party/lua-5.3.5/src/loadlib.c:317–324  ·  view source on GitHub ↗

** return registry.CLIBS[path] */

Source from the content-addressed store, hash-verified

315** return registry.CLIBS[path]
316*/
317static void *checkclib (lua_State *L, const char *path) {
318 void *plib;
319 lua_rawgetp(L, LUA_REGISTRYINDEX, &CLIBS);
320 lua_getfield(L, -1, path);
321 plib = lua_touserdata(L, -1); /* plib = CLIBS[path] */
322 lua_pop(L, 2); /* pop CLIBS table and 'plib' */
323 return plib;
324}
325
326
327/*

Callers 1

lookforfuncFunction · 0.70

Calls 3

lua_rawgetpFunction · 0.70
lua_getfieldFunction · 0.70
lua_touserdataFunction · 0.70

Tested by

no test coverage detected