From a7d9e11f3df541c86127fe2dc305d125c0da9e74 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 2 Jun 2023 14:57:49 +0200 Subject: [PATCH] Add char26_t and char32_t defines for cython. --- generation/generate_gdnative_api_struct.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/generation/generate_gdnative_api_struct.py b/generation/generate_gdnative_api_struct.py index f13deb8..be3e6a8 100644 --- a/generation/generate_gdnative_api_struct.py +++ b/generation/generate_gdnative_api_struct.py @@ -21,6 +21,8 @@ STDLIB_INCLUDES = { "int32_t", "uint64_t", "int64_t", + "uint_least16_t", + "uint_least32_t" ], "wchar.h": ["wchar_t", "size_t"], "uchar.h": [ @@ -369,6 +371,9 @@ if __name__ == "__main__": from libc.stddef cimport wchar_t, size_t from libc.stdint cimport {', '.join(STDLIB_INCLUDES['stdint.h'])} +ctypedef uint_least16_t char16_t +ctypedef uint_least32_t char32_t + cdef extern from "{header_name}" nogil: \"\"\"