IoTivity-Lite
oc_assert.h File Reference
#include "oc_log.h"
#include "util/oc_compiler.h"

Macros

#define oc_assert(cond)
 assert the condition and if it fails abort with message (reason) More...
 

Functions

void abort_impl (void) 1
 abort application More...
 
void exit_impl (int status) 1
 exit the application More...
 

Macro Definition Documentation

◆ oc_assert

#define oc_assert (   cond)
Value:
do { \
if (!(cond)) { \
oc_abort("Assertion (" #cond ") failed."); \
} \
} while (0)

assert the condition and if it fails abort with message (reason)

Function Documentation

◆ abort_impl()

void abort_impl ( void  )

abort application

◆ exit_impl()

void exit_impl ( int  status)

exit the application

Parameters
statusthe exist status