Files
cbindgen/tests/expectations/prefixed_struct_literal_deep.cpp
T
2018-11-05 08:59:44 -06:00

21 lines
300 B
C++

#include <cstdint>
#include <cstdlib>
struct PREFIXBar {
int32_t a;
};
struct PREFIXFoo {
int32_t a;
uint32_t b;
PREFIXBar bar;
};
static const PREFIXFoo PREFIXVAL = (PREFIXFoo){ .a = 42, .b = 1337, .bar = (PREFIXBar){ .a = 323 } };
extern "C" {
void root(PREFIXFoo x);
} // extern "C"