Skip to content
Snippets Groups Projects
Commit 0ebcf99d authored by Ingvar Stepanyan's avatar Ingvar Stepanyan Committed by Ryan Hunt
Browse files

Fix wrapper kind for C-like tagged enum

Fixes #126
parent 07eae4c1
No related branches found
No related tags found
No related merge requests found
......@@ -353,7 +353,7 @@ impl Source for Enum {
out.new_line();
if config.language == Language::C {
out.write("typedef union");
write!(out, "typedef {}", if separate_tag { "struct" } else { "union" });
out.open_brace();
}
......
......@@ -83,7 +83,7 @@ typedef struct {
int16_t y;
} G_Bar_Body;
typedef union {
typedef struct {
G_Tag tag;
union {
G_Foo_Body foo;
......@@ -107,7 +107,7 @@ typedef struct {
int16_t y;
} H_Bar_Body;
typedef union {
typedef struct {
H_Tag tag;
union {
H_Foo_Body foo;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment