Files
cbindgen/tests/expectations/cfg-2.cpp
T
2017-11-09 18:04:22 -05:00

31 lines
312 B
C++

#include <cstdint>
#include <cstdlib>
extern "C" {
#if (defined(NOT_DEFINED) || defined(DEFINED))
struct Foo {
int32_t x;
};
#endif
#if defined(NOT_DEFINED)
struct Bar {
Foo y;
};
#endif
#if defined(DEFINED)
struct Bar {
Foo z;
};
#endif
struct Root {
Bar w;
};
void root(Root a);
} // extern "C"