修复报错

This commit is contained in:
2026-03-21 15:03:10 +08:00
parent 56985997ae
commit ae0c8d2fd8
5 changed files with 17 additions and 12 deletions

View File

@@ -1,8 +1,12 @@
#pragma once
// Minimal logger stub — no external logging library required.
// Replace with a real logger (e.g. spdlog) if needed.
#include <iostream>
#define LOG_INFO(...) (void)0
#define LOG_WARN(...) (void)0
#define LOG_ERROR(...) (void)0
#define LOG_DEBUG(...) (void)0
#ifndef TOOLS__LOGGER_HPP
#define TOOLS__LOGGER_HPP
#include <spdlog/spdlog.h>
namespace tools
{
std::shared_ptr<spdlog::logger> logger();
} // namespace tools
#endif // TOOLS__LOGGER_HPP