** return registry.LUA_NOENV as a boolean */
| 259 | ** return registry.LUA_NOENV as a boolean |
| 260 | */ |
| 261 | static int noenv (lua_State *L) { |
| 262 | int b; |
| 263 | lua_getfield(L, LUA_REGISTRYINDEX, "LUA_NOENV"); |
| 264 | b = lua_toboolean(L, -1); |
| 265 | lua_pop(L, 1); /* remove value */ |
| 266 | return b; |
| 267 | } |
| 268 | |
| 269 | |
| 270 | /* |
no test coverage detected