docs: update core and debug API docs
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
|
||||
**类型**: `module`
|
||||
|
||||
**头文件**: `XCEngine/Debug/Debug.h`
|
||||
|
||||
**描述**: XCEngine 的调试和日志模块,提供日志记录和性能分析功能。
|
||||
|
||||
## 概述
|
||||
@@ -77,8 +79,8 @@ if (condition) {
|
||||
XE_LOG(LogCategory::General, LogLevel::Error, "Something went wrong");
|
||||
}
|
||||
|
||||
// 使用断言
|
||||
XE_ASSERT(ptr != nullptr, "Pointer must not be null");
|
||||
// 使用断言(仅记录Fatal日志,不会中断程序)
|
||||
XC_ASSERT(ptr != nullptr, "Pointer must not be null");
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
Reference in New Issue
Block a user