mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-14 07:53:40 +00:00
cgo: support anonymous enums included in multiple Go files
Anonymous enums (often used in typedefs) triggered a problem that was already solved for structs but wasn't yet solved for enums. So this patch generalizes the code to work for both structs and enums, and adds testing for both.
This commit is contained in:
committed by
Ron Evans
parent
bce0516394
commit
aaa860f154
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
typedef struct {
|
||||
int a;
|
||||
int b;
|
||||
} teststruct;
|
||||
|
||||
typedef enum {
|
||||
v0,
|
||||
v1
|
||||
} testenum;
|
||||
Reference in New Issue
Block a user