|
ic-macros
0.1.5
|

Go to the source code of this file.
Macros | |
| #define | IC_ASSERT(expr, msg...) (expr) == 0 ? _ic_assert_fail(__FILE__, __LINE__, #expr, ""##msg) : ({}) |
| Runtime assertion. More... | |
| #define | IC_ASSERT_CONDITION(expr, condition, msg...) |
| Runtime assertion that returns the evaluated expression. More... | |
| #define IC_ASSERT | ( | expr, | |
| msg... | |||
| ) | (expr) == 0 ? _ic_assert_fail(__FILE__, __LINE__, #expr, ""##msg) : ({}) |
Runtime assertion.
| expr | An expression; if it evaluates to 0 then _ic_assert_fail() is called. |
| msg... | An optional debug message describing the assert. |
Definition at line 18 of file ic_assert.h.
| #define IC_ASSERT_CONDITION | ( | expr, | |
| condition, | |||
| msg... | |||
| ) |
Runtime assertion that returns the evaluated expression.
| expr | An expression. |
| condition | The condition that the result of the expression is held to, e.g. >= 0 |
| msg... | An optional debug message describing the assert. |
Definition at line 28 of file ic_assert.h.