Home | History | Annotate | Download | only in test

Lines Matching defs:max

22 // definition of macros min() and max().  The reason is that many STL
23 // implementations will not work properly as the min and max symbols collide
24 // with the STL functions std:min() and std::max(). The STL headers may check
25 // for the macro definition of min/max and issue a warning or undefine the
28 // Still, Windows defines min() and max() in windef.h as part of the regular
30 // macros being available. To prevent the macro expansion of min/max and to
32 // std::min() and std::max() have to be written with parenthesis around the
37 // against multiple inclusions, no STL header will see our own min/max macro
46 // To test that all calls from Eigen code to std::min() and std::max() are
47 // protected by parenthesis against macro expansion, the min()/max() macros
48 // are defined here and any not-parenthesized min/max call will cause a
51 #define max(A,B) please_protect_your_max_with_parentheses