ecoli_assert(3)
πΈ NAME πΈ
Okay bestie, welcome to ecoli_assert(3) from Libecoli β yes, the manual name is ecoli_assert, and this whole page is the group chat for Assert π
ecoli_assert β Assert β Assertion helpers.
β¨ SYNOPSIS β¨
π Macros
#define ec_assert_print(expr, args...) __ec_assert_print(expr, #expr,
args)
#define EC_CHECK_ARG(cond, ret, err)
πΈ Detailed Description πΈ
Assertion helpers. Helpers to check at runtime if a condition is true, or otherwise either abort (exit program) or return an error. That's the whole plot, no cap π¦
π¦ Macro Definition Documentation π¦
π
ec_assert_print β Abort if the condition is false
Full macro definition, bestie:
#define ec_assert_print(expr, args...) __ec_assert_print(expr, #expr,
args)
Abort if the condition is false.
If expr is false, this macro will print an error message to standard error and terminates the program by calling abort(3) β yes, full drama, the program is leaving the chat ππ₯
Parameters
exprβ The expression to be checked.argsβ The format string, optionally followed by other arguments.
Definition at line 34 of file assert.h.
π EC_CHECK_ARG β Check a condition or return
Full macro definition:
#define EC_CHECK_ARG(cond, ret, err)
Value:
do { if (!(cond)) { errno = err; return ret; } } while (0)
Check a condition or return.
If the condition is true, do nothing. If it is false, set errno and return the specified value. It's giving guard-clause energy, lowkey iconic π
Parameters
condβ The condition to test.retβ The value to return.errβ Theerrnoto set.
Definition at line 58 of file assert.h.
π Author π
This page was Generated automatically by Doxygen for Libecoli from the source code. No cap, the docs robots did the typing and we gave it the glow-up β¨
π Okay that's the whole ecoli_assert(3) page, bestie β it's from Libecoli, version 0.11.3, dated Thu Apr 9 2026. Slay, periodt. π
π¦ where this page comes from
- epel 9: libecoli-devel 0.11.3-1.el9 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms