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