Browse Source

Print null primitive type printing for non-C++ based languages.

pull/778/head
Joao Matos 9 years ago
parent
commit
f8725509fb
  1. 2
      src/AST/CppTypePrinter.cs

2
src/AST/CppTypePrinter.cs

@ -141,7 +141,7 @@ namespace CppSharp.AST @@ -141,7 +141,7 @@ namespace CppSharp.AST
case PrimitiveType.Float128: return "__float128";
case PrimitiveType.IntPtr: return "void*";
case PrimitiveType.UIntPtr: return "uintptr_t";
case PrimitiveType.Null: return "std::nullptr_t";
case PrimitiveType.Null: return PrintFlavorKind == CppTypePrintFlavorKind.Cpp ? "std::nullptr_t" : "NULL";
}
throw new NotSupportedException();

Loading…
Cancel
Save