move MIN/MAX definition, use MIN() instead of min(), patch by DevHC
This commit is contained in:
parent
017bc7e5da
commit
3ddc59a3ba
3 changed files with 10 additions and 11 deletions
|
@ -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 );
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue