theCore C++ embedded framework
assert.h File Reference
#include <string.h>
#include <stddef.h>
Include dependency graph for assert.h:
This graph shows which files directly or indirectly include this file:

Macros

#define ecl_assert_msg(COND, MESSAGE)
 
#define ecl_assert(COND)   ecl_assert_msg(COND, NULL)
 

Functions

void ecl_assert_failed (const char *assertion, const char *message, const char *file, const char *func, unsigned int line)
 

Macro Definition Documentation

◆ ecl_assert_msg

#define ecl_assert_msg (   COND,
  MESSAGE 
)
Value:
do { \
if (!(COND)) { \
ecl_assert_failed((#COND), (MESSAGE), __FILE__, __func__, __LINE__);\
} \
} while(0)

◆ ecl_assert

#define ecl_assert (   COND)    ecl_assert_msg(COND, NULL)

Function Documentation

◆ ecl_assert_failed()

void ecl_assert_failed ( const char *  assertion,
const char *  message,
const char *  file,
const char *  func,
unsigned int  line 
)
Here is the call graph for this function: