From: Alejandro Colomar Date: Mon, 22 Jan 2024 21:43:40 +0000 (+0100) Subject: lib/must_be.h: is_same_type(): Add macro X-Git-Tag: 4.15.0-rc1~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ef08548ccaa44116d009566942624f611cb4681;p=thirdparty%2Fshadow.git lib/must_be.h: is_same_type(): Add macro Signed-off-by: Alejandro Colomar --- diff --git a/lib/must_be.h b/lib/must_be.h index 624849167..a7365cba5 100644 --- a/lib/must_be.h +++ b/lib/must_be.h @@ -90,7 +90,8 @@ */ -#define is_same_typeof(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) +#define is_same_type(a, b) __builtin_types_compatible_p(a, b) +#define is_same_typeof(a, b) is_same_type(typeof(a), typeof(b)) #define is_array(a) (!is_same_typeof((a), &(a)[0])) #define must_be_array(a) must_be(is_array(a))