ZT_PACK_BOOLEAN(3)
π zt_pack_boolean(3) π
okay so bestie, welcome to the libzt corner of the manual, section 3, and yes this page is filed under LOCAL and it's literally untitled in the old-school header sense, but we're calling it what it is: zt_pack_boolean. pull up a chair. π«Ά
β¨ NAME β¨
zt_pack_boolean β pack a boolean into a variant π
πΈ SYNOPSIS πΈ
#include <zt.h>
zt_value
zt_pack_boolean(bool value, const char *source);
π¦ DESCRIPTION π¦
so zt_pack_boolean takes a boolean and shoves it into a variant-like zt_value, and β this is the cute part β it also brings along the string that describes the expression that got evaluated to produce that boolean. two for one. iconic. β¨
the source argument is retained by the value, so it doesn't just vibe for a second and leave. and usually it's a constant string literal that the preprocessor cooked up for you. π
π§ IMPLEMENTATION NOTES π§
zt_pack_boolean is only provided as a static inline function. that's the whole note. no cap. π
π RETURN VALUES π
the packed value. that's it, that's the return. periodt. π
π SEE ALSO π
zt_pack_nothing(3)zt_pack_boolean(3)zt_pack_rune(3)zt_pack_integer(3)zt_pack_unsigned(3)zt_pack_string(3)zt_pack_pointer(3)zt_value(3)
π HISTORY π
zt_pack_boolean first appeared in libzt 0.1. baby's first debut, honestly. πΈ
π AUTHORS π
Zygmunt Krynicki <me@zygoon.pl> β the main character who wrote this. π₯
ok that's the whole page bestie, go forth and pack those booleans responsibly π«Ά
signing off from libzt 0.3.1, dated January 12, 2020 β mwah, stay slay β¨π π
π¦ where this page comes from
- debian bookworm: libzt-doc 0.3.1-4 Β· LGPL-3.0-only
- debian trixie: libzt-doc 0.3.1-4 Β· LGPL-3.0-only
- ubuntu jammy: libzt-doc 0.3.1-4 Β· LGPL-3.0-only
- ubuntu noble: libzt-doc 0.3.1-4build1 Β· LGPL-3.0-only
- ubuntu questing: libzt-doc 0.3.1-4build1
- ubuntu resolute: libzt-doc 0.3.1-4build2 Β· LGPL-3.0-only
- ubuntu stonking: libzt-doc 0.3.1-4build2 Β· LGPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms