From 9c5e433a3aff44f91af9c0ba2dcadd5a2da2e37a Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Mon, 22 Jan 2024 22:42:46 +0100 Subject: [PATCH] lib/must_be.h: is_same_typeof(): Rename macro Signed-off-by: Alejandro Colomar --- lib/must_be.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/must_be.h b/lib/must_be.h index 2ca7b62a2..624849167 100644 --- a/lib/must_be.h +++ b/lib/must_be.h @@ -90,9 +90,9 @@ */ -#define is_same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) -#define is_array(a) (!is_same_type((a), &(a)[0])) -#define must_be_array(a) must_be(is_array(a)) +#define is_same_typeof(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) +#define is_array(a) (!is_same_typeof((a), &(a)[0])) +#define must_be_array(a) must_be(is_array(a)) #endif // include guard -- 2.47.2