| 249 | |
| 250 | |
| 251 | static 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 | |
| 261 | static void ll_addtoclib (lua_State *L, const char *path, void *plib) { |
no test coverage detected