Skip to content

Commit

Permalink
ignore includes for enums header
Browse files Browse the repository at this point in the history
  • Loading branch information
yconst committed Feb 5, 2024
1 parent 760fbb8 commit c823cbf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions avlos/generators/generator_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,10 @@ def process(instance, config):
env.filters["as_include"] = as_include

template = env.get_template("tm_enums.h.jinja")
try:
includes = config["header_includes"]
except KeyError:
includes = []
os.makedirs(os.path.dirname(config["paths"]["output_enums"]), exist_ok=True)
with open(config["paths"]["output_enums"], "w") as output_file:
print(
template.render(instance=instance, includes=includes),
template.render(instance=instance),
file=output_file,
)

Expand Down

0 comments on commit c823cbf

Please sign in to comment.