Provides APIs for Assertion.
More...
|
#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...
|
|
Provides APIs for Assertion.
#define ASSERT |
( |
|
f | ) |
{ if (!(f)) up_assert(); } |
Assert if the condition is not true.
#include <assert.h>
- Parameters
-
[in] | f | assertion condition which shall have a scalar type |
- Returns
- none
- Since
- TizenRT v1.0
Definition at line 125 of file assert.h.
#define DEBUGASSERT |
( |
|
f | ) |
{ if (!(f)) up_assert(); } |
Like ASSERT, but only if CONFIG_DEBUG is defined.
#include <assert.h>
- Parameters
-
[in] | f | assertion condition which shall have a scalar type |
- Returns
- none
- Since
- TizenRT v1.0
Definition at line 154 of file assert.h.
#define DEBUGPANIC |
( |
| ) |
up_assert() |
Like PANIC, but only if CONFIG_DEBUG is defined.
#include <assert.h>
- Returns
- none
- Since
- TizenRT v1.0
Definition at line 171 of file assert.h.
#define DEBUGVERIFY |
( |
|
f | ) |
{ if ((f) < 0) up_assert(); } |
Like VERIFY, but only if CONFIG_DEBUG is defined.
#include <assert.h>
- Parameters
-
[in] | f | assertion condition which shall have a scalar type |
- Returns
- none
- Since
- TizenRT v1.0
Definition at line 163 of file assert.h.
#define PANIC |
( |
| ) |
up_assert() |
Unconditional abort.
#include <assert.h>
- Returns
- none
- Since
- TizenRT v1.0
Definition at line 142 of file assert.h.
#define VERIFY |
( |
|
f | ) |
{ if ((f) < 0) up_assert(); } |
Assert if a function returns a negative value.
#include <assert.h>
- Parameters
-
[in] | f | assertion condition which shall have a scalar type |
- Returns
- none
- Since
- TizenRT v1.0
Definition at line 134 of file assert.h.