1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#include <cstdarg> #include <cstdint> #include <cstdlib> namespace constants { static const int32_t FOO = 10; static const float ZOM = 3.14; struct Foo { int32_t x[FOO]; }; extern "C" { void root(Foo x); } // extern "C" } // namespace constants