|
iceoryx2
C++ Language Bindings
|
#include "iox2/legacy/error_reporting/configuration.hpp"#include "iox2/legacy/error_reporting/error_forwarding.hpp"#include "iox2/bb/detail/source_location.hpp"Go to the source code of this file.
Macros | |
| #define | IOX2_PANIC(message) iox2::legacy::er::forwardPanic(iox2::bb::detail::SourceLocation::current(), message) |
| calls panic handler and does not return | |
| #define | IOX2_ASSERT_INTERNAL(location, condition, stringified_condition, message) |
| Only for internal usage. | |
| #define | IOX2_ASSERT(condition, message) IOX2_ASSERT_INTERNAL(iox2::bb::detail::SourceLocation::current(), condition, #condition, message) |
| only for debug builds: report fatal assert violation if expression evaluates to false | |
| #define | IOX2_ENFORCE_INTERNAL(location, condition, stringified_condition, message) |
| Only for internal usage. | |
| #define | IOX2_ENFORCE(condition, message) IOX2_ENFORCE_INTERNAL(iox2::bb::detail::SourceLocation::current(), condition, #condition, message) |
| report fatal enforce violation if expression evaluates to false | |
| #define | IOX2_UNREACHABLE() |
| panic if control flow reaches this code at runtime | |
| #define | IOX2_TODO() iox2::legacy::er::forwardPanic(iox2::bb::detail::SourceLocation::current(), "Not yet implemented!") |
| panic if control flow reaches this code at runtime and tells the user that this part of the code is not yet implemented | |
| #define IOX2_ASSERT | ( | condition, | |
| message | |||
| ) | IOX2_ASSERT_INTERNAL(iox2::bb::detail::SourceLocation::current(), condition, #condition, message) |
only for debug builds: report fatal assert violation if expression evaluates to false
| condition | boolean expression that must hold |
| message | message to be forwarded in case of violation |
Definition at line 63 of file assertions.hpp.
| #define IOX2_ASSERT_INTERNAL | ( | location, | |
| condition, | |||
| stringified_condition, | |||
| message | |||
| ) |
Only for internal usage.
Definition at line 49 of file assertions.hpp.
| #define IOX2_ENFORCE | ( | condition, | |
| message | |||
| ) | IOX2_ENFORCE_INTERNAL(iox2::bb::detail::SourceLocation::current(), condition, #condition, message) |
report fatal enforce violation if expression evaluates to false
| condition | boolean expression that must hold |
| message | message to be forwarded in case of violation |
Definition at line 81 of file assertions.hpp.
| #define IOX2_ENFORCE_INTERNAL | ( | location, | |
| condition, | |||
| stringified_condition, | |||
| message | |||
| ) |
Only for internal usage.
Definition at line 67 of file assertions.hpp.
| #define IOX2_PANIC | ( | message | ) | iox2::legacy::er::forwardPanic(iox2::bb::detail::SourceLocation::current(), message) |
calls panic handler and does not return
| message | message to be forwarded |
Definition at line 39 of file assertions.hpp.
| #define IOX2_TODO | ( | ) | iox2::legacy::er::forwardPanic(iox2::bb::detail::SourceLocation::current(), "Not yet implemented!") |
panic if control flow reaches this code at runtime and tells the user that this part of the code is not yet implemented
Definition at line 91 of file assertions.hpp.
| #define IOX2_UNREACHABLE | ( | ) |
panic if control flow reaches this code at runtime
Definition at line 85 of file assertions.hpp.