mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-03 10:27:40 +00:00
SDL_FLT_EPSILON: Updated documentation to be wikiheaders-friendly.
This commit is contained in:
parent
997dd3e6eb
commit
8af58b4bec
1 changed files with 9 additions and 3 deletions
|
@ -279,12 +279,18 @@ 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
|
#ifdef FLT_EPSILON
|
||||||
#define SDL_FLT_EPSILON FLT_EPSILON
|
#define SDL_FLT_EPSILON FLT_EPSILON
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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.
|
||||||
|
*
|
||||||
|
* \since This macro is available since SDL 3.0.0.
|
||||||
|
*/
|
||||||
#define SDL_FLT_EPSILON 1.1920928955078125e-07F /* 0x0.000002p0 */
|
#define SDL_FLT_EPSILON 1.1920928955078125e-07F /* 0x0.000002p0 */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue