Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nanopb/nanopb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/pb.h
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2019-12-18 21:33:52 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2019-12-18 21:33:52 +0300
commit8d1dde5fde3ee01666be4aa1aad59ce12ac88a49 (patch)
tree227fc2cff96f6e62394adf586b8792dc5452d4d7 /pb.h
parentc8be762c45b22112def0ef15a4760f9f86621014 (diff)
Add test case for #407
Diffstat (limited to 'pb.h')
-rw-r--r--pb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pb.h b/pb.h
index 871422d..bd95920 100644
--- a/pb.h
+++ b/pb.h
@@ -434,6 +434,8 @@ struct pb_extension_s {
bool found;
};
+#define pb_extension_init_zero {NULL,NULL,NULL,false}
+
/* Memory allocation functions to use. You can define pb_realloc and
* pb_free to custom functions if you want. */
#ifdef PB_ENABLE_MALLOC