|
NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
调试断点和断言工具 更多...
#include "NeForce/core/config/c++config.hpp"宏定义 | |
| #define | NEFORCE_CONSTEXPR_ASSERT(COND) |
| 编译时常量断言 | |
函数 | |
| NEFORCE_NORETURN void | unreachable () noexcept |
| 标记不可达代码路径 | |
| constexpr bool | is_constant_evaluated () noexcept |
| 检查当前上下文是否在常量求值中 | |
| bool | is_debugger_present () |
| 检测当前进程是否正在被调试器附加 | |
| void | debug_assert (bool condition, const char *message=nullptr) |
| 调试断言 | |
| void | breakpoint () noexcept |
| 触发调试断点 | |
| void | breakpoint_if_debugging () |
| 如果正在调试则触发断点 | |