chore: CRLF to LF

This commit is contained in:
smpn2
2022-12-16 23:18:35 +09:00
parent b7a60638a4
commit 6c914266d9
725 changed files with 131020 additions and 131020 deletions
+31 -31
View File
@@ -1,31 +1,31 @@
#pragma once
#include "external/fmt/include/fmt/format.h"
#define ENUM_VARIANT(value) case (value): return #value
#define FLAGS_START(VAR) \
if ((VAR) == 0) { \
return "0x0"; \
} \
\
bool first = true; \
std::string result
#define FLAG(VAR, value) \
do { \
if ((VAR) & (value)) { \
if (!first) { \
result += " | "; \
} \
first = false; \
result += (#value); \
} \
} while (0)
#define FLAGS_END(VAR) \
if (result.empty()) { \
result = fmt::format("0x{:08x}", (VAR)); \
} \
\
return result
#pragma once
#include "external/fmt/include/fmt/format.h"
#define ENUM_VARIANT(value) case (value): return #value
#define FLAGS_START(VAR) \
if ((VAR) == 0) { \
return "0x0"; \
} \
\
bool first = true; \
std::string result
#define FLAG(VAR, value) \
do { \
if ((VAR) & (value)) { \
if (!first) { \
result += " | "; \
} \
first = false; \
result += (#value); \
} \
} while (0)
#define FLAGS_END(VAR) \
if (result.empty()) { \
result = fmt::format("0x{:08x}", (VAR)); \
} \
\
return result