···6566/* Version of the nanopb library. Just in case you want to check it in
67 * your own program. */
68-#define NANOPB_VERSION "nanopb-0.4.7-dev"
6970/* Include all the system headers needed by nanopb. You will need the
71 * definitions of the following:
···177# define PB_STATIC_ASSERT_MSG_(MSG, LINE, COUNTER) pb_static_assertion_##MSG##_##LINE##_##COUNTER
178# elif defined(__cplusplus)
179 /* C++11 standard static_assert mechanism */
180-# define PB_STATIC_ASSERT(COND,MSG) static_assert(COND,#MSG);
181-# elif defined(_MSC_VER)
182- /* Required to work on MSVC */
183# define PB_STATIC_ASSERT(COND,MSG) static_assert(COND,#MSG);
184# else
185 /* C11 standard _Static_assert mechanism */
···905#define PB_INLINE_CONSTEXPR PB_CONSTEXPR
906#endif // __cplusplus >= 201703L
90700908namespace nanopb {
909// Each type will be partially specialized by the generator.
910template <typename GenMessageT> struct MessageDescriptor;
911} // namespace nanopb
0912#endif /* __cplusplus */
913914#endif
···6566/* Version of the nanopb library. Just in case you want to check it in
67 * your own program. */
68+#define NANOPB_VERSION "nanopb-0.4.7"
6970/* Include all the system headers needed by nanopb. You will need the
71 * definitions of the following:
···177# define PB_STATIC_ASSERT_MSG_(MSG, LINE, COUNTER) pb_static_assertion_##MSG##_##LINE##_##COUNTER
178# elif defined(__cplusplus)
179 /* C++11 standard static_assert mechanism */
000180# define PB_STATIC_ASSERT(COND,MSG) static_assert(COND,#MSG);
181# else
182 /* C11 standard _Static_assert mechanism */
···902#define PB_INLINE_CONSTEXPR PB_CONSTEXPR
903#endif // __cplusplus >= 201703L
904905+extern "C++"
906+{
907namespace nanopb {
908// Each type will be partially specialized by the generator.
909template <typename GenMessageT> struct MessageDescriptor;
910} // namespace nanopb
911+}
912#endif /* __cplusplus */
913914#endif
···107#define pb_decode_delimited_noinit(s,f,d) pb_decode_ex(s,f,d, PB_DECODE_DELIMITED | PB_DECODE_NOINIT)
108#define pb_decode_nullterminated(s,f,d) pb_decode_ex(s,f,d, PB_DECODE_NULLTERMINATED)
109110-#ifdef PB_ENABLE_MALLOC
111/* Release any allocated pointer fields. If you use dynamic allocation, you should
112 * call this for any successfully decoded message when you are done with it. If
113 * pb_decode() returns with an error, the message is already released.
114 */
115void pb_release(const pb_msgdesc_t *fields, void *dest_struct);
116-#else
117-/* Allocation is not supported, so release is no-op */
118-#define pb_release(fields, dest_struct) PB_UNUSED(fields); PB_UNUSED(dest_struct);
119-#endif
120-121122/**************************************
123 * Functions for manipulating streams *
···107#define pb_decode_delimited_noinit(s,f,d) pb_decode_ex(s,f,d, PB_DECODE_DELIMITED | PB_DECODE_NOINIT)
108#define pb_decode_nullterminated(s,f,d) pb_decode_ex(s,f,d, PB_DECODE_NULLTERMINATED)
1090110/* Release any allocated pointer fields. If you use dynamic allocation, you should
111 * call this for any successfully decoded message when you are done with it. If
112 * pb_decode() returns with an error, the message is already released.
113 */
114void pb_release(const pb_msgdesc_t *fields, void *dest_struct);
00000115116/**************************************
117 * Functions for manipulating streams *