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 defines for float math functions #158

Merged
merged 2 commits into from
Jun 19, 2024

Conversation

jonstvns
Copy link
Contributor

No description provided.

#include <math.h>
#define CF_SQRTF sqrtf
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you be okay with doing this for each one?

#ifndef CF_SQRTF
    #define CF_SQRTF sqrtf
#endif

That way we don't need CF_NO_DEFAULT_MATH_FUNCTIONS at all

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure.

Though, my thought process was if there's a CF_NO_DEFAULT_MATH_FUNCTIONS, then I can avoid including math.h entirely

I couldn't think of why I'd want to override just one or two math functions, so I didn't copy to pattern from cute_c_runtime.h

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see okay, feel free to leave it then

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haha, too late

@RandyGaul RandyGaul merged commit 41483dd into RandyGaul:master Jun 19, 2024
3 of 4 checks passed
@jonstvns jonstvns deleted the math-function-defines branch June 20, 2024 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants