Assertions
[Miscellaneous]


Defines

#define assert(_x_)
 Evaluate an assertion and catch problems.
#define vm_fatal(_str)   _vm_assert_fail( _str , __FILE__, __LINE__, __func__ )
 Trig a failure by hand.

Functions

void _vm_assert_fail (const char *assertion, const char *file, unsigned int line, const char *function)
 Is called when an assertion has failed. Kills the concerned thread.


Define Documentation

#define assert ( _x_   ) 

Value:

((_x_)                                                  \
        ? ((void)0)                                             \
        : _vm_assert_fail( "Assertion failed : " #_x_ , __FILE__, __LINE__, __func__ ))
Evaluate an assertion and catch problems.

#define vm_fatal ( _str   )     _vm_assert_fail( _str , __FILE__, __LINE__, __func__ )

Trig a failure by hand.


Function Documentation

void _vm_assert_fail ( const char *  assertion,
const char *  file,
unsigned int  line,
const char *  function 
)

Is called when an assertion has failed. Kills the concerned thread.


Generated on Wed Feb 6 14:46:05 2008 for TinyaML by  doxygen 1.5.3