JeVoisBase  1.20
JeVois Smart Embedded Machine Vision Toolkit Base Modules
Share this page:
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

◆ ENV_ASSERT

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

Definition at line 63 of file env_log.h.

◆ ENV_ASSERT2

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

Definition at line 64 of file env_log.h.

Typedef Documentation

◆ env_assert_handler

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

◆ env_assert()

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

Definition at line 43 of file env_log.c.

◆ env_assert_set_handler()

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

Definition at line 49 of file env_log.c.