MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / noenv

Function noenv

extlibs/lua/src/loadlib.c:278–284  ·  view source on GitHub ↗

** return registry.LUA_NOENV as a boolean */

Source from the content-addressed store, hash-verified

276** return registry.LUA_NOENV as a boolean
277*/
278static 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/*

Callers 1

setpathFunction · 0.85

Calls 2

lua_getfieldFunction · 0.85
lua_tobooleanFunction · 0.85

Tested by

no test coverage detected