From ddf60abf10805c48aa01331529786d564906c444 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Wed, 3 Jan 2024 01:31:24 +0100 Subject: Deleted SWAP() and added ARRAY_SIZE() --- FICS/common.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'FICS') 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) \ -- cgit v1.2.3