cb791fe0ef
also: - fixed infinity and NaN-related code breaking when using -ffast-math and friends - added much more detail to many static_assert error messages - added more test permutations of various compiler flags - added many more static checks to test code
28 lines
391 B
C
28 lines
391 B
C
#pragma once
|
|
|
|
// simulate some 'evil' macros to ensure the library is robust against them if they appear in the wild.
|
|
|
|
#ifdef _WIN32
|
|
|
|
#ifndef min
|
|
#define min(...) THIS_IS_AN_EVIL_MACRO
|
|
#endif
|
|
|
|
#ifndef max
|
|
#define max(...) THIS_IS_AN_EVIL_MACRO
|
|
#endif
|
|
|
|
#ifndef near
|
|
#define near THIS_IS_AN_EVIL_MACRO
|
|
#endif
|
|
|
|
#ifndef far
|
|
#define far THIS_IS_AN_EVIL_MACRO
|
|
#endif
|
|
|
|
#else
|
|
|
|
// ...
|
|
|
|
#endif
|