summaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2014-01-03 11:17:39 +0200
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2014-01-03 11:17:39 +0200
commita46ed9f47523712861741c4bb1c42382933467be (patch)
tree6df1e0d87742e5a65ceaffc318e580cb8abb54f0 /generator
parent843fc4b11a5dde584143d4a18deb41556b80daa7 (diff)
Fix problem with callback-type fields (issue #99).
Diffstat (limited to 'generator')
-rwxr-xr-xgenerator/nanopb_generator.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/generator/nanopb_generator.py b/generator/nanopb_generator.py
index dea9098b..094f8e85 100755
--- a/generator/nanopb_generator.py
+++ b/generator/nanopb_generator.py
@@ -169,6 +169,7 @@ class Field:
self.max_count = None
self.array_decl = ""
self.enc_size = None
+ self.ctype = None
# Parse field options
if field_options.HasField("max_size"):