MCPcopy Create free account
hub / github.com/defold/defold / db_setfenv

Function db_setfenv

engine/lua/src/lua/ldblib.c:53–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52
53static int db_setfenv (lua_State *L) {
54 luaL_checktype(L, 2, LUA_TTABLE);
55 lua_settop(L, 2);
56 if (lua_setfenv(L, 1) == 0)
57 luaL_error(L, LUA_QL("setfenv")
58 " cannot change environment of given object");
59 return 1;
60}
61
62
63static 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