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

Function ll_checkclib

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

Source from the content-addressed store, hash-verified

249
250
251static void *ll_checkclib (lua_State *L, const char *path) {
252 void *plib;
253 lua_getfield(L, LUA_REGISTRYINDEX, CLIBS);
254 lua_getfield(L, -1, path);
255 plib = lua_touserdata(L, -1); /* plib = CLIBS[path] */
256 lua_pop(L, 2); /* pop CLIBS table and 'plib' */
257 return plib;
258}
259
260
261static void ll_addtoclib (lua_State *L, const char *path, void *plib) {

Callers 1

ll_loadfuncFunction · 0.85

Calls 2

lua_getfieldFunction · 0.70
lua_touserdataFunction · 0.70

Tested by

no test coverage detected