Example #1
0
        public Val32 GetTypeObjectD(Define st)
        {
            if (st == null) return Val32.New(0);

            var name = st.FullName;
            if (types.ContainsKey(name))
                return types.Get(name) as Val32;

            return GetTypeObjectV(
                name, st.GetFunction(Define.Destructor),
                st.GetSize(), GetTypeObjectD(st.GetBaseStruct()));
        }
Example #2
0
 public void CheckField(Define st1, Define st2)
 {
     st2.MakeUp();
     if (st1 == st2)
         throw Abort(
             "can not define recursive field: {0}",
             st1.GetFullName(name));
     var b = st2.GetBaseStruct();
     if (b != null) CheckField(st1, b);
 }