** return registry.CLIBS[path] */
| 324 | ** return registry.CLIBS[path] |
| 325 | */ |
| 326 | static void *checkclib (lua_State *L, const char *path) { |
| 327 | void *plib; |
| 328 | lua_getfield(L, LUA_REGISTRYINDEX, CLIBS); |
| 329 | lua_getfield(L, -1, path); |
| 330 | plib = lua_touserdata(L, -1); /* plib = CLIBS[path] */ |
| 331 | lua_pop(L, 2); /* pop CLIBS table and 'plib' */ |
| 332 | return plib; |
| 333 | } |
| 334 | |
| 335 | |
| 336 | /* |
no test coverage detected