My serialization,.h starts like this:
static_assert(sizeof(size_t) >= sizeof(size_t),
"The bit-length type used by Nunavut, size_t, "
"is smaller than this platform's size_t type. "
"Nunavut serialization relies on size_t to size_t conversions "
"that do not lose data. You will need to regenerate Nunavut serialization support with a larger "
"unsigned_bit_length type specified.");
. . .
// API usage errors:
#define NUNAVUT_ERROR_INVALID_ARGUMENT 2
#define NUNAVUT_ERROR_SERIALIZATION_BUFFER_TOO_SMALL 3
// Invalid representation (caused by bad input data, not API misuse):
#define NUNAVUT_ERROR_REPRESENTATION_BAD_ARRAY_LENGTH 10
#define NUNAVUT_ERROR_REPRESENTATION_BAD_UNION_TAG 11
#define NUNAVUT_ERROR_REPRESENTATION_BAD_DELIMITER_HEADER 12
. . .
// The rest of the file
I started the generation sequence by sending :
nnvg --target-language c --target-endianness=little --enable-serialization-asserts --list-outputs uavcan --outdir
uavcan_messages
The very last file listed in a HUGE list of .h’s was: uavcan_messages/nunavut/support/serialization.h
Are there any obvious issues?