Skip to content

Commit

Permalink
Fixed typedef usage
Browse files Browse the repository at this point in the history
Signed-off-by: Cervenka Dusan <[email protected]>
  • Loading branch information
Hadatko committed Oct 22, 2024
1 parent c8e32cc commit bd63c99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cfile/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,8 @@ def _write_function_declaration(self, elem: core.Function) -> None:
self._write("static ")
if isinstance(elem.return_type, core.Type):
self._write_type_declaration(elem.return_type)
if isinstance(elem.return_type, core.TypeDef):
self._write_typedef_usage(elem.return_type)
elif isinstance(elem.return_type, core.Enum):
self._write_enum_usage(elem.return_type)
elif isinstance(elem.return_type, core.Struct):
Expand Down

0 comments on commit bd63c99

Please sign in to comment.