KNX IoT
KNX IoT Point API stack implementation
oc_assert.h File Reference

platform specific asserts More...

#include "port/oc_log.h"

Go to the source code of this file.

Macros

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

Functions

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

Detailed Description

platform specific asserts

Definition in file oc_assert.h.

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)

Definition at line 63 of file oc_assert.h.

Function Documentation

◆ abort_impl()

void abort_impl ( void  )

abort application

◆ exit_impl()

void exit_impl ( int  status)

exit the application

Parameters
statusthe exist status