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