ecoli_assert(3)

πŸ“¦
version 0.11.3 Β· 4 versions
, in epel 9

🌸 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 β€” The errno to 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