Beautify code with new macro

This commit is contained in:
Pengfei
2021-07-16 21:59:32 +08:00
parent 55db5f110f
commit 4e619b3621
3 changed files with 21 additions and 33 deletions
+2
View File
@@ -87,3 +87,5 @@ constexpr u64 MakeMagic(char a, char b, char c, char d, char e, char f, char g,
return u64(a) | u64(b) << 8 | u64(c) << 16 | u64(d) << 24 | u64(e) << 32 | u64(f) << 40 |
u64(g) << 48 | u64(h) << 56;
}
#define TRY_MEMCPY(...) TRY(CheckedMemcpy(__VA_ARGS__), LOG_ERROR(Core, "File size is too small"))