From 0d458c0572daac86644819abd0236364816ae060 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sat, 25 Feb 2023 01:58:50 +0800 Subject: [PATCH] fix: `SHOULD_PANIC` as static inline function --- test/codec/common_code.cc | 2 +- test/codec/short_code.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/codec/common_code.cc b/test/codec/common_code.cc index 34bf80d..28b31c8 100644 --- a/test/codec/common_code.cc +++ b/test/codec/common_code.cc @@ -12,7 +12,7 @@ using klotski::CommonCode; const static uint64_t TEST_CODE = 0x1'A9BF'0C00; const static std::string TEST_CODE_STR = "1A9BF0C00"; -inline void SHOULD_PANIC(const std::function &func) { +static inline void SHOULD_PANIC(const std::function &func) { bool panic_flag = false; try { func(); diff --git a/test/codec/short_code.cc b/test/codec/short_code.cc index cb63266..8d70047 100644 --- a/test/codec/short_code.cc +++ b/test/codec/short_code.cc @@ -12,7 +12,7 @@ using klotski::BasicRanges; const static uint32_t TEST_CODE = 4091296; const static std::string TEST_CODE_STR = "4WVE1"; -inline void SHOULD_PANIC(const std::function &func) { +static inline void SHOULD_PANIC(const std::function &func) { bool panic_flag = false; try { func();