Browse Source

Made public the finding of enabled type maps by strings.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/1185/head
Dimitar Dobrev 6 years ago
parent
commit
bbbf94b0f0
  1. 2
      src/Generator/Types/TypeMapDatabase.cs

2
src/Generator/Types/TypeMapDatabase.cs

@ -110,7 +110,7 @@ namespace CppSharp.Types @@ -110,7 +110,7 @@ namespace CppSharp.Types
public bool FindTypeMap(Declaration declaration, out TypeMap typeMap) =>
FindTypeMap(new TagType(declaration), out typeMap);
private bool FindTypeMap(string name, out TypeMap typeMap) =>
public bool FindTypeMap(string name, out TypeMap typeMap) =>
TypeMaps.TryGetValue(name, out typeMap) && typeMap.IsEnabled;
private Dictionary<Type, TypeMap> typeMaps = new Dictionary<Type, TypeMap>();

Loading…
Cancel
Save