Fix
Some checks failed
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 1m20s
linux-x64-gcc / linux-gcc (Release) (push) Has been cancelled

This commit is contained in:
tqcq 2024-03-20 10:49:56 +08:00
parent d97c9e9230
commit 0900656a7e

View File

@ -80,7 +80,7 @@ void Log(LogLevel level, const char *tag, const char *fmt, const char *file_name
#define __LOG_EVERY_N(n, level, tag, fmt, ...) \ #define __LOG_EVERY_N(n, level, tag, fmt, ...) \
do { \ do { \
static int __sled_log_count##__LINE__ = 0; \ static int __sled_log_count##__LINE__ = 0; \
if (__sled_log_count##__LINE++ % n == 0) { SLOG(level, tag, fmt, ##__VA_ARGS__); } \ if (__sled_log_count##__LINE__++ % n == 0) { SLOG(level, tag, fmt, ##__VA_ARGS__); } \
} while (0) } while (0)
#define LOGV_EVERY_N(n, tag, fmt, ...) __LOG_EVERY_N(n, sled::LogLevel::kTrace, tag, fmt, ##__VA_ARGS__) #define LOGV_EVERY_N(n, tag, fmt, ...) __LOG_EVERY_N(n, sled::LogLevel::kTrace, tag, fmt, ##__VA_ARGS__)