Browse Source

Removed union restrictions in CLI backend.

pull/34/merge
triton 13 years ago
parent
commit
77df53cefb
  1. 8
      src/Generator/Generators/CLI/CLIHeadersTemplate.cs

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

@ -184,14 +184,6 @@ namespace CppSharp.Generators.CLI
GenerateDeclarationCommon(@class); 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)) if (GenerateClassProlog(@class))
return; return;

Loading…
Cancel
Save