Skip to content

Commit

Permalink
Fix script build
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanreg committed Nov 5, 2023
1 parent 43d3d73 commit 1c5a8c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/spec2c.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ def iter_data_fields(target_id, struct_name):
iter_enum_fields(enum)
elif data.startswith("struct"):
struct = data[7:].strip("{}")
if struct.startswith("[[#"):
struct = struct.split("|")[1]
if iter_data_fields(struct, struct) == None:
print("Unknown struct:", struct)
exit(22)
Expand Down

0 comments on commit 1c5a8c9

Please sign in to comment.