Browse Source

Fixed C typedef type printing regression.

This one was introduced by 8fa4a1082e and broke Embeddinator.
pull/778/head
Joao Matos 9 years ago
parent
commit
a6c3410b09
  1. 4
      src/AST/CppTypePrinter.cs

4
src/AST/CppTypePrinter.cs

@ -359,6 +359,10 @@ namespace CppSharp.AST @@ -359,6 +359,10 @@ namespace CppSharp.AST
{
if (ResolveTypedefs)
return typedef.Type.Visit(this);
if (PrintFlavorKind != CppTypePrintFlavorKind.Cpp)
return typedef.OriginalName;
var originalNamespace = typedef.OriginalNamespace.Visit(this);
return originalNamespace == "::" ? typedef.OriginalName :
$"{originalNamespace}::{typedef.OriginalName}";

Loading…
Cancel
Save