MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / db_setfenv

Function db_setfenv

other_src/lua/src/ldblib.cpp:60–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58
59
60static int db_setfenv (lua_State *L) {
61 luaL_checktype(L, 2, LUA_TTABLE);
62 lua_settop(L, 2);
63 if (lua_setfenv(L, 1) == 0)
64 luaL_error(L, LUA_QL("setfenv")
65 " cannot change environment of given object");
66 return 1;
67}
68
69
70static 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