public GlobalState(LuaState state) { MainThread = state; Registry = new StkId(); UpvalHead = new LuaUpvalue(); MetaTables = new LuaTable[(int)LuaType.LUA_NUMTAGS]; }
public LuaLClosureValue(LuaProto p) { Proto = p; Upvals = new LuaUpvalue[p.Upvalues.Count]; for (int i = 0; i < p.Upvalues.Count; ++i) { Upvals[i] = new LuaUpvalue(); } }