macro: add ONCE macro that evaluates to 1 one time
authorDan Streetman <ddstreet@canonical.com>
Wed, 19 May 2021 14:01:59 +0000 (10:01 -0400)
committerDan Streetman <ddstreet@canonical.com>
Thu, 20 May 2021 19:39:15 +0000 (15:39 -0400)
commitea42da38258ee182201ecc6c9afb18a9ea46021c
tree0b762dd3b8d684324b5c05813648bbc35819591e
parentf267c3142a43562d273e4cfdd05df21ed836d48b
macro: add ONCE macro that evaluates to 1 one time

Every location that this macro is used, it will be true the first
time it's checked, then false each time after that.

This can be useful for things such as one-time logging.
src/fundamental/macro-fundamental.h