Assert header file.
More...
Go to the source code of this file.
Assert header file.
- Copyright
- ESO - European Southern Observatory
- Author
- landolfa
| #define RAD_ASSERT |
( |
|
a | ) |
rad_assert(a, __FILE__, __FUNCTION__, __LINE__) |
| #define RAD_ASSERTNEVER |
( |
| ) |
rad_assert(false, __FILE__, __FUNCTION__, __LINE__) |
| #define RAD_ASSERTPTR |
( |
|
a | ) |
rad_assert(a != nullptr, __FILE__, __FUNCTION__, __LINE__) |
| void rad_assert |
( |
bool |
condition, |
|
|
const char * |
fileName, |
|
|
const char * |
functionName, |
|
|
int |
lineNumber |
|
) |
| |
This function logs a failed assertion when the condition parameter is false.
- Parameters
-
| [in] | condition | Condition to verify. |
| [in] | fileName | Assertion's filename. |
| [in] | functionName | Assetions's function name. |
| [in] | lineNumber | Assetions's line. |