Browse Source

A simple prototype for supporting unions.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/28/head
Dimitar Dobrev 12 years ago
parent
commit
58b2529df3
  1. 2
      src/AST/Class.cs
  2. 6
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

2
src/AST/Class.cs

@ -138,7 +138,7 @@ namespace CppSharp.AST
public bool IsValueType public bool IsValueType
{ {
get { return Type == ClassType.ValueType; } get { return Type == ClassType.ValueType || IsUnion; }
} }
public bool IsRefType public bool IsRefType

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

@ -310,12 +310,6 @@ namespace CppSharp.Generators.CSharp
PushBlock(CSharpBlockKind.Class); PushBlock(CSharpBlockKind.Class);
GenerateDeclarationCommon(@class); GenerateDeclarationCommon(@class);
if (@class.IsUnion)
{
// TODO: How to do wrapping of unions?
throw new NotImplementedException();
}
GenerateClassProlog(@class); GenerateClassProlog(@class);
NewLine(); NewLine();

Loading…
Cancel
Save