** return registry.CLIBS[path] */
| 275 | ** return registry.CLIBS[path] |
| 276 | */ |
| 277 | static void *checkclib (lua_State *L, const char *path) { |
| 278 | void *plib; |
| 279 | lua_rawgetp(L, LUA_REGISTRYINDEX, &CLIBS); |
| 280 | lua_getfield(L, -1, path); |
| 281 | plib = lua_touserdata(L, -1); /* plib = CLIBS[path] */ |
| 282 | lua_pop(L, 2); /* pop CLIBS table and 'plib' */ |
| 283 | return plib; |
| 284 | } |
| 285 | |
| 286 | |
| 287 | /* |
no test coverage detected