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