X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=pb.h;h=b19dfcfec08435f6c1987dcd7cc88f414be8acdc;hb=47b10ec0ab370475c51294707c0fe6e160046973;hp=22b10d89b81a9107b21a084d73e1a238872b4f52;hpb=cc29958d34e43ed889536ad4a723fce819544785;p=apps%2Fagl-service-can-low-level.git diff --git a/pb.h b/pb.h index 22b10d89..b19dfcfe 100644 --- a/pb.h +++ b/pb.h @@ -6,7 +6,7 @@ * see pb_encode.h or pb_decode.h */ -#define NANOPB_VERSION nanopb-0.1.8-dev +#define NANOPB_VERSION nanopb-0.1.9-dev #include #include @@ -24,7 +24,9 @@ #define UNUSED(x) (void)(x) #endif -/* Compile-time assertion, used for checking compatible compilation options. */ +/* Compile-time assertion, used for checking compatible compilation options. + * If this fails on your compiler for some reason, use #define STATIC_ASSERT + * to disable it. */ #ifndef STATIC_ASSERT #define STATIC_ASSERT(COND,MSG) typedef char STATIC_ASSERT_MSG(MSG, __LINE__, __COUNTER__)[(COND)?1:-1]; #define STATIC_ASSERT_MSG(MSG, LINE, COUNTER) STATIC_ASSERT_MSG_(MSG, LINE, COUNTER) @@ -98,8 +100,8 @@ typedef enum { /* Works for all required/optional/repeated fields. * data_offset points to pb_callback_t structure. - * LTYPE should be 0 (it is ignored, but sometimes - * used to speculatively index an array). */ + * LTYPE should be valid or 0 (it is ignored, but + * sometimes used to speculatively index an array). */ PB_HTYPE_CALLBACK = 0x30, PB_HTYPE_MASK = 0xF0