]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib: Add static_assert_array_size()
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Sat, 3 Dec 2022 11:46:02 +0000 (13:46 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 12 Dec 2022 09:49:39 +0000 (11:49 +0200)
commitad7e11fe21394b1862d65a54e1aec0828efcb2d8
tree3ad3daf437dc1c3e35ea815edc26ec34c3df6da8
parent2ae2d9ad6701073e02e40fae2973fc31360c6302
lib: Add static_assert_array_size()

This is a simple way to make sure array size matches the given count,
or give a compile time error if not.
src/lib/lib.h