浏览代码

Added documentation for SDL_FLT_EPSILON (thanks @MrOnlineCoder!)

Closes https://github.com/libsdl-org/sdlwiki/pull/549
Sam Lantinga 1 年之前
父节点
当前提交
e69272344c
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      include/SDL3/SDL_stdinc.h

+ 3 - 0
include/SDL3/SDL_stdinc.h

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