We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65d4721 commit 62a58e4Copy full SHA for 62a58e4
src/Generator/Generators/C/CCodeGenerator.cs
@@ -144,8 +144,8 @@ public override bool VisitEnumDecl(Enumeration @enum)
144
else
145
Write($"{enumKind} {enumName}");
146
147
- if (Options.GeneratorKind == GeneratorKind.CPlusPlus ||
148
- Options.GeneratorKind == GeneratorKind.CLI)
+ if (!(Options.GeneratorKind == GeneratorKind.C ||
+ Options.GeneratorKind == GeneratorKind.ObjectiveC))
149
{
150
var typeName = CTypePrinter.VisitPrimitiveType(
151
@enum.BuiltinType.Type, new TypeQualifiers());
0 commit comments