添加内存锻炼器代码

This commit is contained in:
zsyg
2025-06-28 09:00:15 +08:00
committed by GitHub
parent 0efd3a9e32
commit 6df4a9a534
18 changed files with 800 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#ifndef LOG_H
#define LOG_H
#include <stdarg.h>
#include <stddef.h>
// 日志级别
typedef enum {
LOG_DEBUG,
LOG_INFO,
LOG_WARNING,
LOG_ERROR
} LogLevel;
// 初始化日志系统
void init_logger();
// 记录日志(支持中文)
void log_message(LogLevel level, const wchar_t* format, ...);
#endif // LOG_H