示例#1
0
 public GlobalState(LuaState state)
 {
     MainThread = state;
     Registry   = new StkId();
     UpvalHead  = new LuaUpvalue();
     MetaTables = new LuaTable[(int)LuaType.LUA_NUMTAGS];
 }
示例#2
0
        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();
            }
        }