7#include "alltypes.pb.h"
8#include "extensions.pb.h"
22 ExtensionMessage extensionfield2 = ExtensionMessage_init_zero;
33 ext1.type = &AllTypes_extensionfield1;
34 ext1.dest = &extensionfield1;
37 ext2.type = &ExtensionMessage_AllTypes_extensionfield2;
38 ext2.dest = &extensionfield2;
50 TEST(extensionfield1 == 12345)
52 TEST(
strcmp(extensionfield2.test1,
"test") == 0)
53 TEST(extensionfield2.test2 == 54321)
#define AllTypes_init_zero
MOSAPI s32 strcmp(const char *str1, const char *str2)
size_t fread(void *__restrict ptr, size_t size, size_t nmemb, FILE *__restrict stream)
static pb_extension_t ext2
static pb_extension_t ext1
#define PB_GET_ERROR(stream)
#define pb_extension_init_zero
bool pb_decode(pb_istream_t *stream, const pb_msgdesc_t *fields, void *dest_struct)
pb_istream_t pb_istream_from_buffer(const pb_byte_t *buf, size_t msglen)
pb_extension_t * extensions
#define SET_BINARY_MODE(file)