** return registry.LUA_NOENV as a boolean */
| 276 | ** return registry.LUA_NOENV as a boolean |
| 277 | */ |
| 278 | static int noenv (lua_State *L) { |
| 279 | int b; |
| 280 | lua_getfield(L, LUA_REGISTRYINDEX, "LUA_NOENV"); |
| 281 | b = lua_toboolean(L, -1); |
| 282 | lua_pop(L, 1); /* remove value */ |
| 283 | return b; |
| 284 | } |
| 285 | |
| 286 | |
| 287 | /* |
no test coverage detected