Browse Source

Print default if normal context

pull/1918/head
duckdoom5 4 months ago
parent
commit
dc50ec435f
  1. 8
      src/Generator/Generators/C/CppTypePrinter.cs

8
src/Generator/Generators/C/CppTypePrinter.cs

@ -473,7 +473,7 @@ namespace CppSharp.Generators.C @@ -473,7 +473,7 @@ namespace CppSharp.Generators.C
{
case TypePrintScopeKind.Local:
{
if (ContextKind == TypePrinterContextKind.Managed)
if (ContextKind is TypePrinterContextKind.Managed or TypePrinterContextKind.Normal)
{
return PrintLogicalNames ? declaration.LogicalName : declaration.Name;
}
@ -510,6 +510,12 @@ namespace CppSharp.Generators.C @@ -510,6 +510,12 @@ namespace CppSharp.Generators.C
return $"{declContext}{NamespaceSeparator}{declName}";
}
if (ContextKind == TypePrinterContextKind.Normal)
{
return PrintLogicalNames ? declaration.QualifiedLogicalName
: declaration.QualifiedName;
}
return PrintLogicalNames ? declaration.QualifiedLogicalOriginalName
: declaration.QualifiedOriginalName;
}

Loading…
Cancel
Save