Browse Source

Fixed C# generation by ignoring templates pointing to incomplete declarations.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/661/head
Dimitar Dobrev 9 years ago
parent
commit
8bda1cc049
  1. 3
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

3
src/Generator/Generators/CSharp/CSharpTextTemplate.cs

@ -260,7 +260,8 @@ namespace CppSharp.Generators.CSharp @@ -260,7 +260,8 @@ namespace CppSharp.Generators.CSharp
}
var templateGroups = (from template in context.Templates.OfType<ClassTemplate>()
where !template.IsIncomplete && template.Specializations.Count > 0
where !template.IsIncomplete && !template.TemplatedDecl.IsIncomplete &&
template.Specializations.Count > 0
group template by context.Classes.Contains(template.TemplatedClass)
into @group
select @group).ToList();

Loading…
Cancel
Save