]> git.ipfire.org Git - thirdparty/shadow.git/commit
must_be.h: Add must_be_array() macro
authorAlejandro Colomar <alx@kernel.org>
Fri, 4 Aug 2023 17:49:57 +0000 (19:49 +0200)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Fri, 1 Sep 2023 07:39:23 +0000 (09:39 +0200)
commitc3a8d02b9f66763b3ef1756ba1dec4e9b039d14e
tree4c7b22a2de0fadbf5d3f5b8260dedecd44664764
parent10f31a97e2b2d0de396702bce56ce9464c4cc4ac
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>
lib/must_be.h