Browse Source

Fixed debugging printing when type printing delegate is not initialized.

pull/1751/head
Joao Matos 3 years ago
parent
commit
9f3ce76261
  1. 2
      src/AST/Type.cs

2
src/AST/Type.cs

@ -30,7 +30,7 @@ namespace CppSharp.AST @@ -30,7 +30,7 @@ namespace CppSharp.AST
public override string ToString()
{
return TypePrinterDelegate(this);
return TypePrinterDelegate == null ? base.ToString() : TypePrinterDelegate(this);
}
public abstract object Clone();

Loading…
Cancel
Save