** return registry.LUA_NOENV as a boolean */
| 283 | ** return registry.LUA_NOENV as a boolean |
| 284 | */ |
| 285 | static int noenv (lua_State *L) { |
| 286 | int b; |
| 287 | lua_getfield(L, LUA_REGISTRYINDEX, "LUA_NOENV"); |
| 288 | b = lua_toboolean(L, -1); |
| 289 | lua_pop(L, 1); /* remove value */ |
| 290 | return b; |
| 291 | } |
| 292 | |
| 293 | |
| 294 | /* |
no test coverage detected