MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / checkclib

Function checkclib

ThirdParty/lua/lua/loadlib.c:277–284  ·  view source on GitHub ↗

** return registry.CLIBS[path] */

Source from the content-addressed store, hash-verified

275** return registry.CLIBS[path]
276*/
277static void *checkclib (lua_State *L, const char *path) {
278 void *plib;
279 lua_rawgetp(L, LUA_REGISTRYINDEX, &CLIBS);
280 lua_getfield(L, -1, path);
281 plib = lua_touserdata(L, -1); /* plib = CLIBS[path] */
282 lua_pop(L, 2); /* pop CLIBS table and 'plib' */
283 return plib;
284}
285
286
287/*

Callers 1

lookforfuncFunction · 0.85

Calls 3

lua_rawgetpFunction · 0.85
lua_getfieldFunction · 0.85
lua_touserdataFunction · 0.85

Tested by

no test coverage detected