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

Loading…
Cancel
Save