|
Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
|
Assertion and verification macros for runtime checks. More...
Go to the source code of this file.
Macros | |
| #define | RTP_DEBUG_BREAK() std::abort() |
| Platform-specific debug break macro. | |
| #define | RTP_ASSERT(condition, msg, ...) |
| Assertion macro (Debug mode) | |
| #define | RTP_VERIFY(condition, msg, ...) RTP_ASSERT(condition, msg, ##__VA_ARGS__) |
| Verification macro (Debug mode) | |
Assertion and verification macros for runtime checks.
Provides platform-independent assertion macros with different behaviors in debug and release builds.
Definition in file Assert.hpp.
| #define RTP_ASSERT | ( | condition, | |
| msg, | |||
| ... | |||
| ) |
Assertion macro (Debug mode)
In debug builds (NDEBUG not defined), logs a fatal error and breaks into debugger if condition is false.
| condition | The condition to assert |
| msg | Error message format string |
| ... | Optional format arguments |
Definition at line 113 of file Assert.hpp.
| #define RTP_DEBUG_BREAK | ( | ) | std::abort() |
Platform-specific debug break macro.
Triggers a debugger breakpoint or aborts execution depending on platform:
Definition at line 61 of file Assert.hpp.
| #define RTP_VERIFY | ( | condition, | |
| msg, | |||
| ... | |||
| ) | RTP_ASSERT(condition, msg, ##__VA_ARGS__) |
Verification macro (Debug mode)
In debug builds, behaves identically to RTP_ASSERT.
| condition | The condition to verify |
| msg | Error message format string |
| ... | Optional format arguments |
Definition at line 130 of file Assert.hpp.