test(stacktrace): make CPPTRACE_FORCE_INLINE static (#196)

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 22:21:30 +03:00 committed by GitHub
parent 5b3f2fb0b1
commit b23bc42df4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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