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

Function checkclib

third-party/lua-5.5.0/src/loadlib.c:322–329  ·  view source on GitHub ↗

** return registry.CLIBS[path] */

Source from the content-addressed store, hash-verified

320** return registry.CLIBS[path]
321*/
322static void *checkclib (lua_State *L, const char *path) {
323 void *plib;
324 lua_getfield(L, LUA_REGISTRYINDEX, CLIBS);
325 lua_getfield(L, -1, path);
326 plib = lua_touserdata(L, -1); /* plib = CLIBS[path] */
327 lua_pop(L, 2); /* pop CLIBS table and 'plib' */
328 return plib;
329}
330
331
332/*

Callers 1

lookforfuncFunction · 0.70

Calls 2

lua_getfieldFunction · 0.70
lua_touserdataFunction · 0.70

Tested by

no test coverage detected