test(stacktrace): make CPPTRACE_FORCE_INLINE static

This fixes compilation error:

> error: inlining failed in call to 'always_inline' 'int stacktrace_inline_resolution_2(std::vector<int>&)': function body can be overwritten at link time
This commit is contained in:
Sergei Zimmerman 2024-12-23 13:51:00 +03:00
parent 5b3f2fb0b1
commit 6919d1e948

View File

@ -11,7 +11,7 @@ using namespace std::literals;
#ifdef _MSC_VER #ifdef _MSC_VER
#define CPPTRACE_FORCE_INLINE [[msvc::flatten]] #define CPPTRACE_FORCE_INLINE [[msvc::flatten]]
#else #else
#define CPPTRACE_FORCE_INLINE [[gnu::always_inline]] #define CPPTRACE_FORCE_INLINE [[gnu::always_inline]] static
#endif #endif