Browse Source

Fixed the generator to reference the enum.

pull/1/head
triton 13 years ago
parent
commit
d5a7314e0d
  1. 2
      src/Generator/Generators/CLI/CLIForwardRefeferencePrinter.cs

2
src/Generator/Generators/CLI/CLIForwardRefeferencePrinter.cs

@ -122,6 +122,8 @@ namespace Cxxi.Generators.CLI @@ -122,6 +122,8 @@ namespace Cxxi.Generators.CLI
public bool VisitEnumDecl(Enumeration @enum)
{
Includes.Add(GetHeaderFromDecl(@enum));
if (@enum.Type.IsPrimitiveType(PrimitiveType.Int32))
{
Refs.Add(string.Format("enum struct {0};", @enum.Name));

Loading…
Cancel
Save