Files
cbindgen/tests/expectations/char.cpp
T
Emilio Cobos Álvarez 9b5dd80d84 Stop including <uchar.h>, and instead map Rust char to uint32_t.
This is technically a breaking change for C++, unfortunately.

Fixes #423.
2019-12-04 00:03:38 +01:00

15 lines
153 B
C++

#include <cstdarg>
#include <cstdint>
#include <cstdlib>
#include <new>
struct Foo {
uint32_t a;
};
extern "C" {
void root(Foo a);
} // extern "C"