Browse Source

Declaration.IsInternal is no longer true when Declaration.GenerationKind is Generate.

pull/244/head
marcos henrich 11 years ago
parent
commit
3e3e605a26
  1. 4
      src/AST/Declaration.cs
  2. 4
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

4
src/AST/Declaration.cs

@ -221,9 +221,7 @@ namespace CppSharp.AST @@ -221,9 +221,7 @@ namespace CppSharp.AST
{
get
{
var k = GenerationKind;
return k == GenerationKind.Generate
|| k == GenerationKind.Internal;
return GenerationKind == GenerationKind.Internal;
}
}

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

@ -223,7 +223,7 @@ namespace CppSharp.Generators.CSharp @@ -223,7 +223,7 @@ namespace CppSharp.Generators.CSharp
// Generate all the internal function declarations.
foreach (var function in context.Functions)
{
if (!function.IsInternal) continue;
if (!function.IsGenerated && !function.IsInternal ) continue;
GenerateInternalFunction(function);
}
@ -2657,7 +2657,7 @@ namespace CppSharp.Generators.CSharp @@ -2657,7 +2657,7 @@ namespace CppSharp.Generators.CSharp
public void GenerateInternalFunction(Function function)
{
if (!function.IsInternal || function.IsPure)
if (function.IsPure)
return;
if (function.OriginalFunction != null)

Loading…
Cancel
Save