Browse Source

Fixed merging problem.

pull/1/head
triton 13 years ago
parent
commit
09f12f35ae
  1. 12
      src/Generator/Types/TypeMap.cs

12
src/Generator/Types/TypeMap.cs

@ -91,19 +91,13 @@ namespace Cxxi.Types
{ {
foreach (var typeMap in types) foreach (var typeMap in types)
{ {
var attrs = typeMap.GetCustomAttributes<TypeMapAttribute>(); var attrs = typeMap.GetCustomAttributes(typeof(TypeMapAttribute));
if (attrs == null) continue; if (attrs == null) continue;
foreach (var attr in attrs) foreach (var attr in attrs)
{ {
var attrs = typeMap.GetCustomAttributes(typeof(TypeMapAttribute), true); Console.WriteLine("Found typemap: {0}", attr.Type);
if (attrs == null) continue; TypeMaps[attr.Type] = typeMap;
foreach (TypeMapAttribute attr in attrs)
{
Console.WriteLine("Found typemap: {0}", attr.Type);
TypeMaps[attr.Type] = typeMap;
}
} }
} }
} }

Loading…
Cancel
Save