zt_pack_boolean3
Pack a boolean into a variant
Usage
#include <zt.h>
zt_value
zt_pack_boolean(bool value, const char *source);
Overview
zt_pack_boolean packs a boolean, as well as the string describing the expression evaluated to obtain it, into a variant-like zt_value. The source argument is retained by the value and is typically a constant string literal produced by the preprocessor.
Implementation notes
zt_pack_boolean is only provided as a static inline function.
Return values
The packed value.
Releases
Unchanged in 3 releases since Debian 11 (Bullseye).