option to override FLT_EPSILON with GLM_FLT_EPSILON

This commit is contained in:
Recep Aslantas
2020-05-26 23:00:00 +03:00
parent 271e3b15d6
commit a1485a14f6
7 changed files with 31 additions and 23 deletions

View File

@@ -40,4 +40,12 @@
#include "types.h"
#include "simd/intrin.h"
#ifndef CGLM_USE_DEFAULT_EPSILON
# ifndef GLM_FLT_EPSILON
# define GLM_FLT_EPSILON 1e-6
# endif
#else
# define GLM_FLT_EPSILON FLT_EPSILON
#endif
#endif /* cglm_common_h */