|
|
|
|
@ -1,6 +1,7 @@
@@ -1,6 +1,7 @@
|
|
|
|
|
using System; |
|
|
|
|
using System.Collections.Generic; |
|
|
|
|
using System.Globalization; |
|
|
|
|
using System.IO; |
|
|
|
|
using System.Linq; |
|
|
|
|
using CppSharp.AST; |
|
|
|
|
using CppSharp.AST.Extensions; |
|
|
|
|
@ -61,7 +62,8 @@ namespace CppSharp.Generators.CLI
@@ -61,7 +62,8 @@ namespace CppSharp.Generators.CLI
|
|
|
|
|
|
|
|
|
|
foreach (var typeRef in typeReferenceCollector.TypeReferences) |
|
|
|
|
{ |
|
|
|
|
if (typeRef.Include.File == TranslationUnit.FileName) |
|
|
|
|
var filename = Context.Options.GenerateName != null ? $"{Context.Options.GenerateName(TranslationUnit)}{Path.GetExtension(TranslationUnit.FileName)}" : TranslationUnit.FileName; |
|
|
|
|
if (typeRef.Include.File == filename) |
|
|
|
|
continue; |
|
|
|
|
|
|
|
|
|
var include = typeRef.Include; |
|
|
|
|
|