Files
cbindgen/tests/expectations/cfg-2.cpp
T
2019-01-03 09:46:55 -06:00

40 lines
466 B
C++

#include <cstdarg>
#include <cstdint>
#include <cstdlib>
#if defined(NOT_DEFINED)
static const int32_t DEFAULT_X = 8;
#endif
#if defined(DEFINED)
static const int32_t DEFAULT_X = 42;
#endif
#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;
};
extern "C" {
void root(Root a);
} // extern "C"