From 865867586a304a083e5f5b7f56014e40ae59ecf5 Mon Sep 17 00:00:00 2001 From: triton Date: Fri, 18 Jan 2013 16:52:06 +0000 Subject: [PATCH] Comment out and add a TODO for the handling of unions. --- src/Generator/Generators/CLI/CLIHeadersTemplate.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Generator/Generators/CLI/CLIHeadersTemplate.cs b/src/Generator/Generators/CLI/CLIHeadersTemplate.cs index bea736b4..ef0fbfa1 100644 --- a/src/Generator/Generators/CLI/CLIHeadersTemplate.cs +++ b/src/Generator/Generators/CLI/CLIHeadersTemplate.cs @@ -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)