From 27988d09e2d1c7275c5466e87d8a629f0b0e370b Mon Sep 17 00:00:00 2001 From: Pengfei Date: Fri, 16 Jul 2021 22:01:25 +0800 Subject: [PATCH] Provide arguments --- src/common/common_funcs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h index 63f72f1..0ce340b 100644 --- a/src/common/common_funcs.h +++ b/src/common/common_funcs.h @@ -88,4 +88,5 @@ constexpr u64 MakeMagic(char a, char b, char c, char d, char e, char f, char g, u64(g) << 48 | u64(h) << 56; } -#define TRY_MEMCPY(...) TRY(CheckedMemcpy(__VA_ARGS__), LOG_ERROR(Core, "File size is too small")) +#define TRY_MEMCPY(dest, container, offset, size) \ + TRY(CheckedMemcpy(dest, container, offset, size), LOG_ERROR(Core, "File size is too small"))