]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/must_be.h: is_same_type(): Add macro
authorAlejandro Colomar <alx@kernel.org>
Mon, 22 Jan 2024 21:43:40 +0000 (22:43 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Fri, 26 Jan 2024 08:40:10 +0000 (09:40 +0100)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/must_be.h

index 62484916713ee06237238cb1c8a98dfb076f1cc4..a7365cba53f36ab692147410fd35cf07fd5189a5 100644 (file)
@@ -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))