aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/common.h
diff options
context:
space:
mode:
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) \