Browse Source

Comment out and add a TODO for the handling of unions.

pull/1/head
triton 13 years ago
parent
commit
865867586a
  1. 9
      src/Generator/Generators/CLI/CLIHeadersTemplate.cs

9
src/Generator/Generators/CLI/CLIHeadersTemplate.cs

@ -168,7 +168,14 @@ namespace Cxxi.Generators.CLI @@ -168,7 +168,14 @@ namespace Cxxi.Generators.CLI
GenerateDeclarationCommon(@class);
if (@class.IsUnion)
WriteLine("[StructLayout(LayoutKind.Explicit)]");
{
// TODO: How to do wrapping of unions?
//const string @namespace = "System::Runtime::InteropServices";
//WriteLine("[{0}::StructLayout({0}::LayoutKind::Explicit)]",
// @namespace);
Console.WriteLine("Unions are not yet implemented");
}
Write("public ");
if (@class.IsValueType)

Loading…
Cancel
Save