diff options
| author | jakubtomsu <66876057+jakubtomsu@users.noreply.github.com> | 2024-04-12 22:27:11 +0200 |
|---|---|---|
| committer | jakubtomsu <66876057+jakubtomsu@users.noreply.github.com> | 2024-04-12 22:27:11 +0200 |
| commit | 7311e1c979debe119c9d6f9e302c02c8495c1acb (patch) | |
| tree | 3167a2dcf1557e6828edfbacf4df1a56e57beaee /bindgen/gen_odin.py | |
| parent | 5238ce7a5b9f3696cab79118173e0a12df7b70e2 (diff) | |
Exclude 'NUM' enum values from bindings
Diffstat (limited to 'bindgen/gen_odin.py')
| -rw-r--r-- | bindgen/gen_odin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bindgen/gen_odin.py b/bindgen/gen_odin.py index 6ba84f3a..a8901a04 100644 --- a/bindgen/gen_odin.py +++ b/bindgen/gen_odin.py @@ -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: |