From 77df53cefb6493542301fd798b8c36b5d2e4ec08 Mon Sep 17 00:00:00 2001 From: triton Date: Thu, 15 Aug 2013 23:39:42 +0100 Subject: [PATCH] Removed union restrictions in CLI backend. --- src/Generator/Generators/CLI/CLIHeadersTemplate.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/Generator/Generators/CLI/CLIHeadersTemplate.cs b/src/Generator/Generators/CLI/CLIHeadersTemplate.cs index e343e908..4cbfacbf 100644 --- a/src/Generator/Generators/CLI/CLIHeadersTemplate.cs +++ b/src/Generator/Generators/CLI/CLIHeadersTemplate.cs @@ -184,14 +184,6 @@ namespace CppSharp.Generators.CLI GenerateDeclarationCommon(@class); - if (@class.IsUnion) - { - // TODO: How to do wrapping of unions? - //const string @namespace = "System::Runtime::InteropServices"; - //WriteLine("[{0}::StructLayout({0}::LayoutKind::Explicit)]", - // @namespace); - //throw new NotImplementedException("Unions are not supported yet"); - } if (GenerateClassProlog(@class)) return;