From ed43193103faaef258fbf935edef1fdc8db166aa Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Wed, 23 Oct 2024 17:03:25 +0900 Subject: [PATCH] Force `int` as base type --- SDL3-CS/generate_bindings.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SDL3-CS/generate_bindings.py b/SDL3-CS/generate_bindings.py index 5552f54..c025ecc 100644 --- a/SDL3-CS/generate_bindings.py +++ b/SDL3-CS/generate_bindings.py @@ -263,6 +263,12 @@ base_command = [ "__va_list=byte*", "__va_list_tag=byte", + "--nativeTypeNamesToStrip", + "unsigned int", + + "--with-type", + "*=int", # all types should be ints by default + "--define-macro", "SDL_FUNCTION_POINTER_IS_VOID_POINTER", "SDL_DECLSPEC=", # Not supported by llvm