-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Rewrite gendynapi into python #6783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
some status:
some snapshot of the .json dump:
|
This seems like a good change to me, and will make it easier for people other than @icculus to extend it. ;) |
Tested this by removing the late -SDL_DYNAPI_PROC(Uint8,SDL_GetEventState,(Uint32 a),(a),return)
+SDL_DYNAPI_PROC(Uint8,SDL_GetEventState,(Uint32 a),(a),return) Nothing big, but thought that you'd want to know. This was with python- |
Thanks, done, it makes it easier for comparing. then, there is maybe some issue with: old: also with SDL_asprintf and "..." Not sure how we should handle array: this one seems incorrect: There are also ome SDL_OUT_BYTECAP differences, but the API is already written anyway. To check that, I remove the whole dynproc.h file, regen, use "sort" and compare |
This is the difference I believe that should be checked now: if OLD is incorrect, it should be fixed ..
|
|
I've applied, and may be this can be remove for SDL3: |
I've updated the array[] in SDL_UIKitRunApp.
|
Also updated the SDL_WinRTRunApp DYNAPI prototype because it's clearly different from the real api |
Those were never caught because dynapi is actually disabled for ios and winrt |
And those two changes should be applied to SDL2 side if possible, for sake of correctness |
"gendynapi" tool seems more powerful in python and easier to extend.
Trying to add more possibility:
now there is an option "--dump" to dump all SDL api (parsed) into a json file.
(which can be useful for something like creating bindings #6337)