move MIN/MAX definition, use MIN() instead of min(), patch by DevHC

This commit is contained in:
Thilo Schulz 2011-05-15 13:27:24 +00:00
parent 017bc7e5da
commit 3ddc59a3ba
3 changed files with 10 additions and 11 deletions

View file

@ -640,6 +640,14 @@ void PerpendicularVector( vec3_t dst, const vec3_t src );
int Q_isnan( float x );
#ifndef MAX
#define MAX(x,y) ((x)>(y)?(x):(y))
#endif
#ifndef MIN
#define MIN(x,y) ((x)<(y)?(x):(y))
#endif
//=============================================
float Com_Clamp( float min, float max, float value );

View file

@ -43,9 +43,6 @@ static const char* cur_line;
static FILE* fout;
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#define MAX(a,b) ((a) > (b) ? (a) : (b))
#define crap(fmt, args...) do { \
_crap(__FUNCTION__, fmt, ##args); \
} while(0)