JeVoisBase  1.0
JeVois Smart Embedded Machine Vision Toolkit Base Modules
env_log.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ENV_ASSERT(expr)   do { if ( !(expr) ) env_assert(#expr, 0, __FILE__, __LINE__); } while(0)
 
#define ENV_ASSERT2(expr, msg)   do { if ( !(expr) ) env_assert(msg, 1, __FILE__, __LINE__); } while(0)
 

Typedefs

typedef void( env_assert_handler) (const char *what, int custom_msg, const char *where, int line_no)
 

Functions

void env_assert (const char *what, int custom_msg, const char *where, int line_no)
 
void env_assert_set_handler (env_assert_handler __attribute__((noreturn))*handler)
 

Macro Definition Documentation

#define ENV_ASSERT2 (   expr,
  msg 
)    do { if ( !(expr) ) env_assert(msg, 1, __FILE__, __LINE__); } while(0)

Typedef Documentation

typedef void( env_assert_handler) (const char *what, int custom_msg, const char *where, int line_no)

Definition at line 45 of file env_log.h.

Function Documentation

void env_assert ( const char *  what,
int  custom_msg,
const char *  where,
int  line_no 
)

Definition at line 43 of file env_log.c.

void env_assert_set_handler ( env_assert_handler __attribute__((noreturn))*  handler)

Definition at line 49 of file env_log.c.