Skip to content
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

Add type declarations to check-* macro #161

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
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.

1 participant