 |
SWMM
5.2.0
Documentation
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
17#define MEMCHECK(x) (((x) == NULL) ? 101 : 0 )
22#define FREE(x) { if (x) { free(x); x = NULL; } }
27#define ABS(x) (((x)<0) ? -(x) : (x))
28#define MIN(x,y) (((x)<=(y)) ? (x) : (y))
29#define MAX(x,y) (((x)>=(y)) ? (x) : (y))
30#define MOD(x,y) ((x)%(y))
31#define LOG10(x) ((x) > 0.0 ? log10((x)) : (x))
32#define SQR(x) ((x)*(x))
33#define SGN(x) (((x)<0) ? (-1) : (1))
34#define SIGN(x,y) ((y) >= 0.0 ? fabs(x) : -fabs(x))
35#define UCHAR(x) (((x) >= 'a' && (x) <= 'z') ? ((x)&~32) : (x))
37#define ARRAY_LENGTH(x) (sizeof(x)/sizeof(x[0]))
42#define CALL(x) (ErrorCode = ((ErrorCode>0) ? (ErrorCode) : (x)))