Add support for packed structures on IAR and MSVC.

Update issue 66
Status: FixedInGit
This commit is contained in:
Petteri Aimonen
2013-03-13 15:22:00 +02:00
parent 6468f23d23
commit 1396dce2ae
2 changed files with 29 additions and 4 deletions

View File

@@ -312,6 +312,11 @@ class Message:
result += ' pb_packed'
result += ' %s;' % self.name
if self.packed:
result = 'PB_PACKED_STRUCT_START\n' + result
result += '\nPB_PACKED_STRUCT_END'
return result
def types(self):