yahelpers
Enhanced debugging functionality for the ya ecosystem
Loading...
Searching...
No Matches
Documentation

The documentation is generated using Doxygen.

Building the documentation locally

If you prefer to generate the documentation locally instead of using the online version, run:

# Make sure the following packages are installed:
# - doxygen
# - graphviz
# - texlive-latex-base
# - texlive-latex-recommended
# - texlive-latex-extra
# - texlive-fonts-recommended
doxygen Doxyfile
#cd doxygen-doc/latex PDF CURRENTLY NOT SUPPORTED DUE TO BUILD ERRORS
#make

Minimal Example

#include <ya-ecosystem/helpers/log.h>
#include <ya-ecosystem/helpers/assert.h>
int main(void) {
LOG_DEBUG("Program started");
int x = 5;
ASSERT(x == 5, ASSERT_DEFAULT); // will abort with a helpful message if false
LOG_DEBUG("x = %d", x);
return 0;
}
#define ASSERT_DEFAULT
Print timestamp of the assert and abort on error.
Definition assert.h:25
#define ASSERT(cond, opts)
Prints a debug message if the condition cond is failed.
Definition assert.h:49
#define LOG_DEBUG(formatted_string,...)
Prints a debug message.
Definition log.h:46
int main(void)
Definition test_assert.c:27