diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-01-03 01:31:24 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-01-03 01:31:24 +0100 |
commit | ddf60abf10805c48aa01331529786d564906c444 (patch) | |
tree | ec044cac85cb88211edd8993797bd3b6d559de44 /FICS | |
parent | f0964d079d5af5aaba928bbb2c03bc7060e3e0ac (diff) |
Deleted SWAP() and added ARRAY_SIZE()
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/common.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/FICS/common.h b/FICS/common.h index 51ea256..872bc7b 100644 --- a/FICS/common.h +++ b/FICS/common.h @@ -37,12 +37,7 @@ #define NULL ((void *)0) #endif -#define SWAP(a,b,type) {\ - type tmp; \ - tmp = (a);\ - (a) = (b);\ - (b) = tmp;\ -} +#define ARRAY_SIZE(_a) (sizeof((_a)) / sizeof((_a)[0])) #ifdef DEBUG #define ASSERT(expression) \ |