Beispiel #1
0
 public override void VisitCustomDeclaration(CustomDeclaration customDeclaration)
 {
     if ((customDeclaration.IsPointer || customDeclaration.HasAttribute("Enum")) && !customDeclaration.IsArray)
     {
         bool isBaseType = customDeclaration.HasAttribute("Enum");
         VisitValueDeclaration(customDeclaration, isBaseType);
     }
     else
     {
         VisitReferenceDeclaration(customDeclaration);
     }
 }
 public override void VisitCustomDeclaration(CustomDeclaration customDeclaration)
 {
     if (customDeclaration.IsPointer &&
         !customDeclaration.HasAttribute("ForwardDeclareIgnore") &&
         !IsAlreadyAdded(customDeclaration.CppType))
     {
         m_Builder.Append("class ").Append(customDeclaration.CppType).Append(";\n");
         m_AddedDeclares.Add(customDeclaration.CppType);
     }
 }
 public override void VisitCustomDeclaration(CustomDeclaration customDeclaration)
 {
     if (customDeclaration.IsPointer || customDeclaration.HasAttribute("Enum"))
     {
         VisitValueDeclaration(customDeclaration);
     }
     else
     {
         VisitReferenceDeclaration(customDeclaration);
     }
 }