yahelpers
Enhanced debugging functionality for the ya ecosystem
Loading...
Searching...
No Matches
Macros
assert.h File Reference

Assertion utilities for the ya ecosystem. More...

#include "log.h"
Include dependency graph for assert.h:

Go to the source code of this file.

Macros

#define ASSERT(cond)
 Prints a debug message if the condition cond is failed.
 

Detailed Description

Assertion utilities for the ya ecosystem.

Author
asaeppel4231
Version
0.1

This header provides lightweight assertion helpers used throughout the ya ecosystem. Assertions help detect incorrect assumptions and unexpected states during runtime.

When NDEBUG is defined, all assertions are disabled.

Macro Definition Documentation

◆ ASSERT

#define ASSERT (   cond)
Value:
do { \
if (!(cond)) { \
LOG_DEBUG("ASSERT " #cond " failed !!!"); \
} \
} while (0)

Prints a debug message if the condition cond is failed.