Browse Source

Minor refactoring to allow better IDE inspection and debugging.

pull/1316/merge
João Matos 6 years ago committed by João Matos
parent
commit
7acd580914
  1. 3
      src/Generator/Types/TypeMapDatabase.cs

3
src/Generator/Types/TypeMapDatabase.cs

@ -106,7 +106,8 @@ namespace CppSharp.Types @@ -106,7 +106,8 @@ namespace CppSharp.Types
{
typePrinter.ResolveTypedefs = resolveTypeDefs;
typePrinter.ScopeKind = typePrintScopeKind;
if (FindTypeMap(type.Visit(typePrinter), out typeMap))
var typeName = type.Visit(typePrinter);
if (FindTypeMap(typeName, out typeMap))
{
typeMap.Type = type;
typeMaps[type] = typeMap;

Loading…
Cancel
Save