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?
|
// TODO: Support std::nested_exception?
|
||||||
try {
|
try {
|
||||||
auto ptr = std::current_exception();
|
auto ptr = std::current_exception();
|
||||||
|
|||||||
@ -25,6 +25,12 @@
|
|||||||
#define NODISCARD
|
#define NODISCARD
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if IS_MSVC
|
||||||
|
#define MSVC_CDECL __cdecl
|
||||||
|
#else
|
||||||
|
#define MSVC_CDECL
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace cpptrace {
|
namespace cpptrace {
|
||||||
namespace detail {
|
namespace detail {
|
||||||
static const stacktrace_frame null_frame {
|
static const stacktrace_frame null_frame {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user