Specify __cdecl for the terminate handler on MSVC, fixes #197
This commit is contained in:
parent
d5a2043fd3
commit
0c40839009
@ -40,7 +40,7 @@ namespace cpptrace {
|
||||
}
|
||||
}
|
||||
|
||||
[[noreturn]] void terminate_handler() {
|
||||
[[noreturn]] void MSVC_CDECL terminate_handler() {
|
||||
// TODO: Support std::nested_exception?
|
||||
try {
|
||||
auto ptr = std::current_exception();
|
||||
|
||||
@ -25,6 +25,12 @@
|
||||
#define NODISCARD
|
||||
#endif
|
||||
|
||||
#if IS_MSVC
|
||||
#define MSVC_CDECL __cdecl
|
||||
#else
|
||||
#define MSVC_CDECL
|
||||
#endif
|
||||
|
||||
namespace cpptrace {
|
||||
namespace detail {
|
||||
static const stacktrace_frame null_frame {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user