lib/must_be.h: is_same_typeof(): Rename macro
Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
committed by
Iker Pedrosa
parent
9340efbb0d
commit
9c5e433a3a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user