Tizen RT Libs&Environment  v1.1 D4

Provides APIs for Assertion. More...

Collaboration diagram for ASSERT:

Files

file  assert.h
 Assert APIs.
 

Macros

#define ASSERT(f)   { if (!(f)) up_assert(); }
 Assert if the condition is not true. More...
 
#define VERIFY(f)   { if ((f) < 0) up_assert(); }
 Assert if a function returns a negative value. More...
 
#define PANIC()   up_assert()
 Unconditional abort. More...
 
#define DEBUGASSERT(f)   { if (!(f)) up_assert(); }
 Like ASSERT, but only if CONFIG_DEBUG is defined. More...
 
#define DEBUGVERIFY(f)   { if ((f) < 0) up_assert(); }
 Like VERIFY, but only if CONFIG_DEBUG is defined. More...
 
#define DEBUGPANIC()   up_assert()
 Like PANIC, but only if CONFIG_DEBUG is defined. More...
 

Detailed Description

Provides APIs for Assertion.

Macro Definition Documentation

◆ ASSERT

#define ASSERT (   f)    { if (!(f)) up_assert(); }

Assert if the condition is not true.

#include <assert.h>

Parameters
[in]fassertion condition which shall have a scalar type
Returns
none
Since
Tizen RT v1.0

Definition at line 125 of file assert.h.

◆ DEBUGASSERT

#define DEBUGASSERT (   f)    { if (!(f)) up_assert(); }

Like ASSERT, but only if CONFIG_DEBUG is defined.

#include <assert.h>

Parameters
[in]fassertion condition which shall have a scalar type
Returns
none
Since
Tizen RT v1.0

Definition at line 154 of file assert.h.

◆ DEBUGPANIC

#define DEBUGPANIC ( )    up_assert()

Like PANIC, but only if CONFIG_DEBUG is defined.

#include <assert.h>

Returns
none
Since
Tizen RT v1.0

Definition at line 171 of file assert.h.

◆ DEBUGVERIFY

#define DEBUGVERIFY (   f)    { if ((f) < 0) up_assert(); }

Like VERIFY, but only if CONFIG_DEBUG is defined.

#include <assert.h>

Parameters
[in]fassertion condition which shall have a scalar type
Returns
none
Since
Tizen RT v1.0

Definition at line 163 of file assert.h.

◆ PANIC

#define PANIC ( )    up_assert()

Unconditional abort.

#include <assert.h>

Returns
none
Since
Tizen RT v1.0

Definition at line 142 of file assert.h.

◆ VERIFY

#define VERIFY (   f)    { if ((f) < 0) up_assert(); }

Assert if a function returns a negative value.

#include <assert.h>

Parameters
[in]fassertion condition which shall have a scalar type
Returns
none
Since
Tizen RT v1.0

Definition at line 134 of file assert.h.