80da1f59aa
Opt-in since it uses a C++17 feature, but this allow exactly the same usage in C++ and Rust, which I think is nice. This also fixes constants of transparent structs in general, since the initial version of this patch broke a test (associated constants in enums), so I added a test for that too.
13 lines
168 B
C
13 lines
168 B
C
#include <stdarg.h>
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
|
|
typedef struct Foo {
|
|
|
|
} Foo;
|
|
#define Foo_GA 10
|
|
#define Foo_ZO 3.14
|
|
|
|
void root(Foo x);
|