Include the field type in a comment for extension fields
This commit is contained in:
@@ -498,7 +498,8 @@ class ExtensionField(Field):
|
|||||||
msg +=' type of extension fields is currently supported. */\n'
|
msg +=' type of extension fields is currently supported. */\n'
|
||||||
return msg
|
return msg
|
||||||
|
|
||||||
return 'extern const pb_extension_type_t %s;\n' % self.fullname
|
return ('extern const pb_extension_type_t %s; /* field type: %s */\n' %
|
||||||
|
(self.fullname, str(self).strip()))
|
||||||
|
|
||||||
def extension_def(self):
|
def extension_def(self):
|
||||||
'''Definition of the extension type in the .pb.c file'''
|
'''Definition of the extension type in the .pb.c file'''
|
||||||
|
|||||||
Reference in New Issue
Block a user