Skip to content

Commit

Permalink
Remove MIN MAX C style macro.
Browse files Browse the repository at this point in the history
No need to min max macro in C++. These functions are defined
in algorithm header in the standard library.
  • Loading branch information
shrit committed Mar 6, 2019
1 parent 5644984 commit 81cd3e4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions core/global_include.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ constexpr double M_PI = 3.14159265358979323846;
constexpr float M_PI_F = float(M_PI);
#endif

#define MIN(x_, y_) ((x_) > (y_)) ? (y_) : (x_)
#define MAX(x_, y_) ((x_) > (y_)) ? (x_) : (y_)

#ifdef WINDOWS
#define STRNCPY strncpy_s
#else
Expand Down

0 comments on commit 81cd3e4

Please sign in to comment.