-
Notifications
You must be signed in to change notification settings - Fork 4
Add floating-point arithmetic functions to SDL_stdinc #37
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 floating-point arithmetic functions to SDL_stdinc #37
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi there, great etxension. Please have a look at my two comments.
* \sa SDL_lognf | ||
* \sa SDL_log10 | ||
* \sa SDL_exp | ||
*} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe extend this comment by the explanation for the different function name (SDL_logn
) as given for this pull request.
"SDL3-for-Pascal: We changed the function name ..."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The explanation is already there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh sorry! My bad! Missed your notes.
Please extend the note specifically by "SDL3-for-Pascal NOTE: ..." (or similar). Otherwise our notes are hardly to distinguish from original notes. Then this would be ready to merge and you could merge. I could add this, too if you like. Let me know how to proceed.
Best regards
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed. Feel free to edit further, if needed.
* | ||
* \sa SDL_logn | ||
* \sa SDL_expf | ||
*} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment above, same could be applied here.
8973c8d
to
876518c
Compare
Excellent! |
824fcb3
into
PascalGameDevelopment:main
This PR adds missing floating-point arithmetic functions to
SDL_stdinc
.As was the case in SDL2, since function names are case-insensitive in Pascal, there is a duplicate identifier conflict between
SDL_log
(calculate natural logarithm) andSDL_Log
(log a message). As before, I've opted to renameSDL_log
toSDL_logn
- making it resembleSDL_log10
, the other logarithm function. An alternative approach would be to mark bothSDL_Log
andSDL_log
asoverload
.