Browse Source

Merge pull request #1554 from raulsntos/char-metadata

Correct type for `char16` and `char32` meta
David Snopek 1 năm trước cách đây
mục cha
commit
19c83a8837
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      binding_generator.py

+ 2 - 0
binding_generator.py

@@ -2770,6 +2770,8 @@ def correct_type(type_name, meta=None, use_alias=True):
     if meta is not None:
         if "int" in meta:
             return f"{meta}_t"
+        elif "char" in meta:
+            return f"{meta}_t"
         else:
             return meta
     if type_name in type_conversion: