Alejandro Colomar
|
4ef08548cc
|
lib/must_be.h: is_same_type(): Add macro
Signed-off-by: Alejandro Colomar <alx@kernel.org>
|
2024-01-26 09:40:10 +01:00 |
|
Alejandro Colomar
|
9c5e433a3a
|
lib/must_be.h: is_same_typeof(): Rename macro
Signed-off-by: Alejandro Colomar <alx@kernel.org>
|
2024-01-26 09:40:10 +01:00 |
|
Alejandro Colomar
|
c3a8d02b9f
|
must_be.h: Add must_be_array() macro
This macro statically asserts that the argument is an array.
Link: <https://stackoverflow.com/a/57537491>
Cc: Christian Göttsche <cgzones@googlemail.com>
Cc: Serge Hallyn <serge@hallyn.com>
Cc: Iker Pedrosa <ipedrosa@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
|
2023-09-01 09:39:23 +02:00 |
|
Alejandro Colomar
|
10f31a97e2
|
must_be.h: Add must_be() macro
It's like static_assert(3), but can be used in more places. It's
necessary for writing a must_be_array() macro.
Link: <https://stackoverflow.com/a/57537491>
Cc: Christian Göttsche <cgzones@googlemail.com>
Cc: Serge Hallyn <serge@hallyn.com>
Cc: Iker Pedrosa <ipedrosa@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
|
2023-09-01 09:39:23 +02:00 |
|