A couple fixes

This commit is contained in:
Jeremy 2023-11-21 22:56:11 -06:00
parent 728ec2cb40
commit e7aae33cec
No known key found for this signature in database
GPG Key ID: B4C8300FEC395042

View File

@ -27,7 +27,7 @@
#define CPPTRACE_FORCE_NO_INLINE __attribute__((noinline))
#endif
#if _MSC_VER
#ifdef _MSC_VER
#pragma warning(push)
// warning C4251: using non-dll-exported type in dll-exported type, firing on std::vector<frame_ptr> and others for some
// reason
@ -406,7 +406,7 @@ namespace cpptrace {
} catch(...) { \
::cpptrace::rethrow_and_wrap_if_needed(); \
} \
} while(0);
} while(0)
#define CPPTRACE_WRAP(expression) [&] () -> decltype((expression)) { \
try { \
@ -416,7 +416,7 @@ namespace cpptrace {
} \
} ()
#if _MSC_VER
#ifdef _MSC_VER
#pragma warning(pop)
#endif