[Yunq] Add support for nested fields in messages.

This commit is contained in:
Drew Galbraith 2024-01-11 21:32:08 -08:00
parent 9e12531651
commit a48d63a664
18 changed files with 257 additions and 219 deletions

View file

@ -34,6 +34,7 @@ def main():
jinja_env = Environment(loader=FileSystemLoader(pathlib.Path(__file__).parent.resolve()))
message_header_tmpl = jinja_env.get_template("message.h.jinja")
message_header_tmpl.globals['Type'] = Type
with open(filename + '.h', mode='w') as f:
message_header = message_header_tmpl.render(messages=messages, package=package)
f.write(message_header)