aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/common.h
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-01-03 01:31:24 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-01-03 01:31:24 +0100
commitddf60abf10805c48aa01331529786d564906c444 (patch)
treeec044cac85cb88211edd8993797bd3b6d559de44 /FICS/common.h
parentf0964d079d5af5aaba928bbb2c03bc7060e3e0ac (diff)
Deleted SWAP() and added ARRAY_SIZE()
Diffstat (limited to 'FICS/common.h')
-rw-r--r--FICS/common.h7
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) \