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