![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Shamrock assertion utility. More...
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | ASSERT_MODE_CASSERT 1 |
| Use C assert for shamrock assertion. | |
| #define | ASSERT_MODE_RUNTIME_ERROR 2 |
| Use C++ exception for shamrock assertion. | |
| #define | SHAM_ASSERT_NAMED(message, condition) |
| Macro to assert that a condition is true. | |
| #define | SHAM_ASSERT(x) SHAM_ASSERT_NAMED(#x, x) |
| Shorthand for SHAM_ASSERT_NAMED without a message. | |
Shamrock assertion utility.
Definition in file assert.hpp.
| #define ASSERT_MODE_CASSERT 1 |
Use C assert for shamrock assertion.
Definition at line 19 of file assert.hpp.
| #define ASSERT_MODE_RUNTIME_ERROR 2 |
Use C++ exception for shamrock assertion.
Definition at line 20 of file assert.hpp.
| #define SHAM_ASSERT | ( | x | ) | SHAM_ASSERT_NAMED(#x, x) |
Shorthand for SHAM_ASSERT_NAMED without a message.
Definition at line 67 of file assert.hpp.
| #define SHAM_ASSERT_NAMED | ( | message, | |
| condition | |||
| ) |
Macro to assert that a condition is true.
Definition at line 40 of file assert.hpp.