예제 #1
0
 // Initialize field
 public CppField(string name, CppType type, int bitfieldSize = 0, bool isConst = false)
 {
     Name         = name;
     Type         = type;
     BitfieldSize = bitfieldSize;
     IsConst      = isConst;
 }
예제 #2
0
 public CppPointerType(int WordSize, CppType elementType) : base(null, WordSize) => ElementType = elementType;
예제 #3
0
 public static CppEnumType NewEnum(CppType underlyingType, string name = "") => new CppEnumType(underlyingType)
 {
     Name = name
 };
예제 #4
0
 public CppArrayType(CppType elementType, int length) : base(null)
 {
     ElementType = elementType;
     Length      = length;
 }