]> git.ipfire.org Git - thirdparty/shadow.git/commit
must_be.h: Add must_be() macro
authorAlejandro Colomar <alx@kernel.org>
Sun, 30 Jul 2023 12:12:45 +0000 (14:12 +0200)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Fri, 1 Sep 2023 07:39:23 +0000 (09:39 +0200)
commit10f31a97e2b2d0de396702bce56ce9464c4cc4ac
tree424005f744e8fc042a459e0f664748da53695acc
parent328958ca0168e3ce29509efeb190961d3affcc8f
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>
lib/Makefile.am
lib/must_be.h [new file with mode: 0644]