Skip to content

Commit

Permalink
Auto-insert platform #define for convenience
Browse files Browse the repository at this point in the history
  • Loading branch information
JaceCear committed Jan 5, 2025
1 parent fac1c37 commit 8e83f70
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions genctx.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ def search_directories(*patterns):
print_order = tuple(ts.static_order())

with open('ctx.c', 'w') as context:
# Since the context is only used for matching anyway, auto-insert
context.write("#define PLATFORM_GBA 1\n\n")

for header in print_order:
exclude = False
for e in excluded:
Expand All @@ -72,5 +75,3 @@ def search_directories(*patterns):
if not exclude:
print(header)
context.write(data[header])


0 comments on commit 8e83f70

Please sign in to comment.