MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / noenv

Function noenv

src/Chain/libraries/glua/loadlib.cpp:757–763  ·  view source on GitHub ↗

** return registry.LUA_NOENV as a boolean */

Source from the content-addressed store, hash-verified

755** return registry.LUA_NOENV as a boolean
756*/
757static 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
766static void setpath(lua_State *L, const char *fieldname, const char *envname1,

Callers 1

setpathFunction · 0.85

Calls 2

lua_getfieldFunction · 0.85
lua_tobooleanFunction · 0.85

Tested by

no test coverage detected