2007-12-08 18:19:48 +00:00
|
|
|
/**********************/
|
|
|
|
/* Some usual defines */
|
|
|
|
/**********************/
|
|
|
|
|
|
|
|
#ifndef DEFS_MACROS_H
|
|
|
|
#define DEFS_MACROS_H
|
|
|
|
|
|
|
|
#ifndef BOOL
|
|
|
|
#define BOOL bool
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef FALSE
|
|
|
|
#define FALSE false
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef TRUE
|
|
|
|
#define TRUE true
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef NULL
|
|
|
|
#define NULL 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef abs
|
|
|
|
#define abs(x) (((x) >=0) ? (x) : (-(x)))
|
|
|
|
#endif
|
|
|
|
|
2007-12-17 20:18:04 +00:00
|
|
|
|
|
|
|
#ifndef min
|
|
|
|
#define min(x,y) (((x) <= (y)) ? (x) : (y))
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef max
|
|
|
|
#define max(x,y) (((x) >= (y)) ? (x) : (y))
|
|
|
|
#endif
|
|
|
|
|
2007-12-08 18:19:48 +00:00
|
|
|
#define TRACE printf
|
|
|
|
|
|
|
|
#endif // ifndef DEFS_MACROS_H
|