MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / db_setfenv

Function db_setfenv

Source/Misc/lua/src/lua.c:11570–11577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11568
11569
11570static int db_setfenv (lua_State *L) {
11571luaL_checktype(L, 2, LUA_TTABLE);
11572lua_settop(L, 2);
11573if (lua_setfenv(L, 1) == 0)
11574luaL_error(L, LUA_QL("setfenv")
11575" cannot change environment of given object");
11576return 1;
11577}
11578
11579
11580static void settabss (lua_State *L, const char *i, const char *v) {

Callers

nothing calls this directly

Calls 4

luaL_checktypeFunction · 0.85
lua_settopFunction · 0.85
lua_setfenvFunction · 0.85
luaL_errorFunction · 0.85

Tested by

no test coverage detected