Added documentation for SDL_FLT_EPSILON (thanks @MrOnlineCoder!)

Closes https://github.com/libsdl-org/sdlwiki/pull/549
This commit is contained in:
Sam Lantinga
2024-06-08 08:29:17 -07:00
parent f62a1bed16
commit e69272344c

View File

@@ -279,6 +279,9 @@ typedef Sint64 SDL_Time;
*/
/* @{ */
/**
* Epsilon constant, used for comparing floating-point numbers. Equals by default to platform-defined FLT_EPSILON, or 1.1920928955078125e-07F if that's not available.
*/
#ifdef FLT_EPSILON
#define SDL_FLT_EPSILON FLT_EPSILON
#else