MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / db_setfenv

Function db_setfenv

third-party/lua-5.1.5/src/ldblib.c:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52
53
54static int db_setfenv (lua_State *L) {
55 luaL_checktype(L, 2, LUA_TTABLE);
56 lua_settop(L, 2);
57 if (lua_setfenv(L, 1) == 0)
58 luaL_error(L, LUA_QL("setfenv")
59 " cannot change environment of given object");
60 return 1;
61}
62
63
64static void settabss (lua_State *L, const char *i, const char *v) {

Callers

nothing calls this directly

Calls 4

luaL_checktypeFunction · 0.70
lua_settopFunction · 0.70
lua_setfenvFunction · 0.70
luaL_errorFunction · 0.70

Tested by

no test coverage detected