MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / noenv

Function noenv

lib/lua/src/loadlib.c:276–282  ·  view source on GitHub ↗

** return registry.LUA_NOENV as a boolean */

Source from the content-addressed store, hash-verified

274** return registry.LUA_NOENV as a boolean
275*/
276static int noenv (lua_State *L) {
277 int b;
278 lua_getfield(L, LUA_REGISTRYINDEX, "LUA_NOENV");
279 b = lua_toboolean(L, -1);
280 lua_pop(L, 1); /* remove value */
281 return b;
282}
283
284
285/*

Callers 1

setpathFunction · 0.85

Calls 2

lua_getfieldFunction · 0.85
lua_tobooleanFunction · 0.85

Tested by

no test coverage detected