Skip to content

Conversation

lockie
Copy link
Contributor

@lockie lockie commented May 3, 2023

Hello!
This PR adds type declarations to SDL2 functions' return values in CHECK-* macros. This allows some compilers (notably SBCL) to replace generic number operations (e.g. GENERIC-=) with more performant machine-specific instructions. This improves performance for functions wrapped in those macros, especially when called in tight loops.

ellisvelo added a commit to ellisvelo/cl-sdl2 that referenced this pull request Jun 3, 2023
@fitzsim
Copy link
Contributor

fitzsim commented Jul 5, 2025

Looks good and tested a little locally. Merging, thanks.

@fitzsim fitzsim merged commit 8a5c766 into lispgames:main Jul 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants