src/hotspot/share/utilities/globalDefinitions.hpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
webrev Cdiff src/hotspot/share/utilities/globalDefinitions.hpp
src/hotspot/share/utilities/globalDefinitions.hpp
Print this page
*** 1010,1025 ****
#ifdef min
#undef min
#endif
- // The following defines serve the purpose of preventing use of accidentally
- // included min max macros from compiling, while continuing to allow innocent
- // min and max identifiers in the code to compile as intended.
- #define max max
- #define min min
-
// It is necessary to use templates here. Having normal overloaded
// functions does not work because it is necessary to provide both 32-
// and 64-bit overloaded functions, which does not work, and having
// explicitly-typed versions of these routines (i.e., MAX2I, MAX2L)
// will be even more error-prone than macros.
--- 1010,1019 ----
src/hotspot/share/utilities/globalDefinitions.hpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File