Browse Source

Fixed the IsGenerated and IsProcessed flags on declarations to actually do the correct thing instead of doing the opposite of what they should.

pull/1/head
triton 12 years ago
parent
commit
8d281303b3
  1. 18
      src/Bridge/Declaration.cs

18
src/Bridge/Declaration.cs

@ -91,16 +91,20 @@ namespace CppSharp @@ -91,16 +91,20 @@ namespace CppSharp
{
get
{
return !IgnoreFlags.HasFlag(IgnoreFlags.Generation) ||
Namespace.IsGenerated;
var isGenerated = !IgnoreFlags.HasFlag(IgnoreFlags.Generation);
if (Namespace == null)
return isGenerated;
return isGenerated && Namespace.IsGenerated;
}
set
{
if (value)
IgnoreFlags |= IgnoreFlags.Generation;
else
IgnoreFlags &= ~IgnoreFlags.Generation;
else
IgnoreFlags |= IgnoreFlags.Generation;
}
}
@ -109,16 +113,16 @@ namespace CppSharp @@ -109,16 +113,16 @@ namespace CppSharp
{
get
{
return !IgnoreFlags.HasFlag(IgnoreFlags.Processing) ||
return !IgnoreFlags.HasFlag(IgnoreFlags.Processing) &&
Namespace.IsProcessed;
}
set
{
if (value)
IgnoreFlags |= IgnoreFlags.Processing;
else
IgnoreFlags &= ~IgnoreFlags.Processing;
else
IgnoreFlags |= IgnoreFlags.Processing;
}
}

Loading…
Cancel
Save