diff options
Diffstat (limited to 'crawl-ref/source/defines.h')
-rw-r--r-- | crawl-ref/source/defines.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/defines.h b/crawl-ref/source/defines.h index c104ae7358..00bae84207 100644 --- a/crawl-ref/source/defines.h +++ b/crawl-ref/source/defines.h @@ -301,4 +301,8 @@ // it wants to be used in case labels. #define CONTROL( xxx ) ((xxx) - 'A' + 1) +#define ARRAYSIZE(x) (sizeof(x) / sizeof(x[0])) + +#define MIN(x, y) MINIMUM(x, y) + #endif |