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

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

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

Loading…
Cancel
Save