** return registry.LUA_NOENV as a boolean */
| 755 | ** return registry.LUA_NOENV as a boolean |
| 756 | */ |
| 757 | static int noenv(lua_State *L) { |
| 758 | int b; |
| 759 | lua_getfield(L, LUA_REGISTRYINDEX, "LUA_NOENV"); |
| 760 | b = lua_toboolean(L, -1); |
| 761 | lua_pop(L, 1); /* remove value */ |
| 762 | return b; |
| 763 | } |
| 764 | |
| 765 | |
| 766 | static void setpath(lua_State *L, const char *fieldname, const char *envname1, |
no test coverage detected