Browse Source

Use a native type printer context when looking for type maps in CSharpSourcesExtensions.DisableTypeMap.

pull/1360/head
João Matos 5 years ago committed by João Matos
parent
commit
2a7d7fa469
  1. 1
      src/Generator/Generators/CSharp/CSharpSourcesExtensions.cs

1
src/Generator/Generators/CSharp/CSharpSourcesExtensions.cs

@ -125,6 +125,7 @@ namespace CppSharp.Generators.CSharp @@ -125,6 +125,7 @@ namespace CppSharp.Generators.CSharp
foreach (TypePrintScopeKind kind in Enum.GetValues(typeof(TypePrintScopeKind)))
{
var cppTypePrinter = new CppTypePrinter(context) { ScopeKind = kind };
cppTypePrinter.PushContext(TypePrinterContextKind.Native);
names.Add(mapped.Visit(cppTypePrinter));
}
foreach (var name in names.Where(context.TypeMaps.TypeMaps.ContainsKey))

Loading…
Cancel
Save