Shared macros used throughout the legacy SWMM engine.
More...
Go to the source code of this file.
Shared macros used throughout the legacy SWMM engine.
- Author
- Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com (OpenSWMM maintenance and extensions)
- Copyright
- Copyright (c) 2026 Caleb Buahin. OpenSWMM contributions only; original EPA SWMM credits are retained.
- License
- Apache-2.0 for OpenSWMM contributions; original EPA SWMM provenance is retained.
◆ ABS
◆ ARRAY_LENGTH
| #define ARRAY_LENGTH |
( |
| x | ) |
|
Value:(sizeof(x) / sizeof(x[0]))
◆ CALL
Value:
EXTERN int ErrorCode
Definition globals.h:99
◆ FREE
Value: { \
if (x) { \
free(x); \
x = NULL; \
} \
}
◆ LOG10
Value:((x) > 0.0 ? log10((x)) : (x))
◆ MAX
Value:(((x) >= (
y)) ? (x) : (
y))
double * y
Definition odesolve.c:37
◆ MEMCHECK
Value:(((x) == NULL) ? 101 : 0)
◆ MIN
Value:(((x) <= (
y)) ? (x) : (
y))
◆ MOD
◆ SGN
◆ SIGN
Value:((
y) >= 0.0 ? fabs(x) : -fabs(x))
◆ SQR
◆ UCHAR
Value:(((x) >= 'a' && (x) <= 'z') ? ((x) & ~32) : (x))