#include "blocxx/BLOCXX_config.h"
#include "blocxx/Exception.hpp"
Go to the source code of this file.
|
| #define | BLOCXX_ASSERT(CON) |
| | BLOCXX_ASSERT works similar to the assert() macro, but instead of calling abort(), it throws an AssertionException.
|
| |
| #define | BLOCXX_ASSERTMSG(CON, MSG) |
| | BLOCXX_ASSERTMSG works the same as BLOCXX_ASSERT, but with a second string parameter that will be added to the exception message on failure.
|
| |
◆ BLOCXX_ASSERT
| #define BLOCXX_ASSERT |
( |
|
CON | ) |
|
BLOCXX_ASSERT works similar to the assert() macro, but instead of calling abort(), it throws an AssertionException.
- Parameters
-
| CON | The condition which will be evaluated. |
Definition at line 57 of file Assertion.hpp.
◆ BLOCXX_ASSERTMSG
| #define BLOCXX_ASSERTMSG |
( |
|
CON, |
|
|
|
MSG |
|
) |
| |
BLOCXX_ASSERTMSG works the same as BLOCXX_ASSERT, but with a second string parameter that will be added to the exception message on failure.
- Parameters
-
| CON | The condition which will be evaluated. |
| MSG | The extra message. A C string literal. |
Definition at line 71 of file Assertion.hpp.