Browse Source

Restored the new line after the last generated item of an enum.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/778/head
Dimitar Dobrev 8 years ago
parent
commit
ec6ddb62cf
  1. 3
      src/Generator/Generators/CodeGenerator.cs

3
src/Generator/Generators/CodeGenerator.cs

@ -197,8 +197,7 @@ namespace CppSharp.Generators @@ -197,8 +197,7 @@ namespace CppSharp.Generators
{
item.Visit(this);
if (item != last)
WriteLine(",");
WriteLine(item == last ? string.Empty : ",");
}
}

Loading…
Cancel
Save