libose
Loading...
Searching...
No Matches
Macros
ose_assert.h File Reference

Provides assertion macros. More...

#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
Include dependency graph for ose_assert.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ose_assert(t)
 Assertion macro. Can be disabled by defining NDEBUG.
 
#define ose_always(t)   (t)
 
#define ose_never(t)   (t)
 

Detailed Description

Provides assertion macros.

Macro Definition Documentation

◆ ose_assert

#define ose_assert (   t)
Value:
!(t) \
? ((void)fprintf(stderr, \
"Assertion failed: %s, " \
"function %s, " \
"file %s, " \
"line %d.\n", \
#t, __func__, __FILE__, __LINE__), \
abort()) \
: (void)0

Assertion macro. Can be disabled by defining NDEBUG.