Fix cyclic messages support in generator. Beginnings of test.

Update issue 130
Status: Started
This commit is contained in:
Petteri Aimonen
2014-08-28 21:23:28 +03:00
parent 9e866b4853
commit df7234fd8b
5 changed files with 192 additions and 1 deletions

View File

@@ -546,7 +546,7 @@ class Message:
def get_dependencies(self):
'''Get list of type names that this structure refers to.'''
return [str(field.ctype) for field in self.fields]
return [str(field.ctype) for field in self.fields if field.allocation == 'STATIC']
def __str__(self):
result = 'typedef struct _%s {\n' % self.name