1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include <cstdarg> #include <cstdint> #include <cstdlib> #include <new> static const uint8_t EXPORT_ME_TOO = 42; struct ExportMe { uint64_t val; }; extern "C" { void export_me(ExportMe *val); } // extern "C"