lib/must_be.h: is_same_typeof(): Rename macro

Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Alejandro Colomar
2024-01-22 22:42:46 +01:00
committed by Iker Pedrosa
parent 9340efbb0d
commit 9c5e433a3a

View File

@@ -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