** return registry.CLIBS[path] */
| 333 | ** return registry.CLIBS[path] |
| 334 | */ |
| 335 | static void *checkclib (lua_State *L, const char *path) { |
| 336 | void *plib; |
| 337 | lua_getfield(L, LUA_REGISTRYINDEX, CLIBS); |
| 338 | lua_getfield(L, -1, path); |
| 339 | plib = lua_touserdata(L, -1); /* plib = CLIBS[path] */ |
| 340 | lua_pop(L, 2); /* pop CLIBS table and 'plib' */ |
| 341 | return plib; |
| 342 | } |
| 343 | |
| 344 | |
| 345 | /* |
no test coverage detected