Skip to content

Commit

Permalink
Exclude 'NUM' enum values from bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubtomsu committed Apr 12, 2024
1 parent 5238ce7 commit 7311e1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindgen/gen_odin.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def gen_enum(decl, prefix):
l(f'{as_struct_or_enum_type(enum_name, prefix)} :: enum i32 {{')
for item in decl['items']:
item_name = as_enum_item_name(check_override(item['name']))
if item_name != 'FORCE_U32':
if item_name != 'FORCE_U32' and item_name != 'NUM':
if 'value' in item:
l(f" {item_name} = {item['value']},")
else:
Expand Down

0 comments on commit 7311e1c

Please sign in to comment.