|
Sturk 1.1.0
Publish-subscribe C implementation.
|
Exceptions. More...


Go to the source code of this file.
Macros | |
| #define | ST_EXCEPTIONS_EN 0 |
| Exceptions enabled. | |
| #define | ST_RAISE(lvl, e) |
| Raise an exception. | |
| #define | ST_ENSURE(cond, lvl, e) |
| Raise an exception if the condition is not met. | |
| #define | ST_ENSURE_MEM(ptr, lvl) |
| Raise an exception and return NULL if the pointer is NULL. | |
Exceptions.
| #define ST_ENSURE | ( | cond, | |
| lvl, | |||
| e | |||
| ) |
Raise an exception if the condition is not met.
| [in] | cond | The condition. |
| [in] | lvl | The exception level: WARNING or ERROR. |
| [in] | e | The exception. |
| #define ST_ENSURE_MEM | ( | ptr, | |
| lvl | |||
| ) |
Raise an exception and return NULL if the pointer is NULL.
| [in] | ptr | The pointer. |
| [in] | lvl | Exception level. |
| #define ST_RAISE | ( | lvl, | |
| e | |||
| ) |
Raise an exception.
| [in] | lvl | The exception level (WARNING or ERROR). |
| [in] | e | The exception. |