MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / noenv

Function noenv

3rd/lua-5.4.3/src/loadlib.c:285–291  ·  view source on GitHub ↗

** return registry.LUA_NOENV as a boolean */

Source from the content-addressed store, hash-verified

283** return registry.LUA_NOENV as a boolean
284*/
285static 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/*

Callers 1

setpathFunction · 0.85

Calls 2

lua_getfieldFunction · 0.85
lua_tobooleanFunction · 0.85

Tested by

no test coverage detected