cbindgen/tests/expectations/const_generics.cpp
2022-05-09 16:13:39 +02:00

22 lines
332 B
C++

#include <cstdarg>
#include <cstdint>
#include <cstdlib>
#include <ostream>
#include <new>
constexpr static const uintptr_t TITLE_SIZE = 80;
template<uintptr_t CAP>
using CArrayString = int8_t[CAP];
struct Book {
CArrayString<TITLE_SIZE> title;
CArrayString<40> author;
};
extern "C" {
void root(Book *a);
} // extern "C"