Go to the source code of this file.
◆ ASSERT_RETURN
| #define ASSERT_RETURN |
( |
| CONDITION, |
|
|
| RETURN_VALUE ) |
Value:if (!(CONDITION)) return RETURN_VALUE;
Returns a value if the condition is not met.
- Parameters
-
| CONDITION | The condition to check. |
| RETURN_VALUE | The value to return. |
◆ ASSERT_RETURN_FALSE
| #define ASSERT_RETURN_FALSE |
( |
| CONDITION | ) |
|
Value:
#define ASSERT_RETURN(CONDITION, RETURN_VALUE)
Definition Preprocessor.h:17
Returns false if the condition is not met.
- Parameters
-
| CONDITION | The condition to check. |
◆ ASSERT_RETURN_TRUE
| #define ASSERT_RETURN_TRUE |
( |
| CONDITION | ) |
|
Value:Returns true if the condition is not met.
- Parameters
-
| CONDITION | The condition to check. |
◆ SAFE_DELETE
| #define SAFE_DELETE |
( |
| PTR | ) |
|
Value:if (PTR) { delete PTR; PTR = nullptr; }
Deletes an object and resets its pointer.
- Parameters
-
| PTR | The pointer to the object to delete. |