Browse Source

Check if the type is null.

pull/1/head
triton 13 years ago
parent
commit
b303fa6df4
  1. 7
      src/Generator/Types/CppTypePrinter.cs

7
src/Generator/Types/CppTypePrinter.cs

@ -93,7 +93,12 @@ namespace Cxxi.Types @@ -93,7 +93,12 @@ namespace Cxxi.Types
public string VisitTypedefType(TypedefType typedef, TypeQualifiers quals)
{
return typedef.Declaration.Type.Visit(this);
var decl = typedef.Declaration;
if (decl.Type == null)
return string.Empty;
return decl.Type.Visit(this);
}
public string VisitTemplateSpecializationType(TemplateSpecializationType template, TypeQualifiers quals)

Loading…
Cancel
Save