Man page - zt_cmp_bool(3)
Packages contas this manual
- zt_pack_boolean(3)
- zt_main(3)
- zt_location_at(3)
- zt_pack_unsigned(3)
- zt_test_case_func(3)
- zt_pack_nothing(3)
- zt_test_suite_func(3)
- zt_check(3)
- zt_pack_rune(3)
- zt_visit_test_case(3)
- zt_value(3)
- zt_pack_string(3)
- zt_pack_pointer(3)
- zt_claim(3)
- libzt(3)
- zt_visitor(3)
- zt_test(3)
- zt_location(3)
- zt_pack_integer(3)
apt-get install libzt-doc
Manual
| ZT_CMP_BOOL(3) | Library Functions Manual (prm) | ZT_CMP_BOOL(3) |
NAME
ZT_CMP_BOOL,
zt_cmp_bool — construct a
claim of a relation between two booleans
SYNOPSIS
#include
<zt.h>
#define ZT_CMP_BOOL(left, rel, right) \
zt_cmp_bool( \
ZT_CURRENT_LOCATION(), \
zt_pack_boolean((left), (#left)), \
zt_pack_string((#rel), (#rel)), \
zt_pack_boolean((right), (#right)))
zt_claim
zt_cmp_bool(zt_location location,
zt_value left, zt_value rel,
zt_value right);
DESCRIPTION
zt_cmp_bool()
constructs a claim of a relation between two booleans. It should be used
through the macro
ZT_CMP_BOOL()
which passes source code location and packs arguments.
The relation must be either == or !=.
It may be more natural to use
ZT_TRUE()
or
ZT_FALSE()
instead.
IMPLEMENTATION NOTES
RETURN VALUES
Both the macro and the function return a claim structure with the
right attributes set. The returned claim is usually passed to
zt_check() or to
zt_assert().
SEE ALSO
ZT_CMP_RUNE(3), ZT_CMP_CSTR(3), ZT_CMP_INT(3), ZT_CMP_PTR(3), ZT_CMP_UINT(3), ZT_FALSE(3), ZT_NOT_NULL(3), ZT_NULL(3), ZT_TRUE(3), zt_check(3),
HISTORY
The ZT_CMP_BOOL() macro and the
zt_cmp_bool() function first appeared in libzt
0.1
AUTHORS
Zygmunt Krynicki <me@zygoon.pl>
| January 12, 2020 | libzt 0.3.1 |