Skip to content

Commit f35ef65

Browse files
committed
Merge branch 'dev'
2 parents b127cfb + 0c40839 commit f35ef65

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

cmake/Autoconfig.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ function(check_support var source includes libraries definitions)
44
list(APPEND CMAKE_REQUIRED_INCLUDES "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
55
set(CMAKE_REQUIRED_LIBRARIES "${libraries}")
66
set(CMAKE_REQUIRED_DEFINITIONS "${definitions}")
7+
set(CMAKE_CXX_STANDARD 11)
8+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
79
string(CONCAT full_source "#include \"${source}\"" ${nonce})
810
check_cxx_source_compiles(${full_source} ${var})
911
set(${var} ${${var}} PARENT_SCOPE)

src/utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ namespace cpptrace {
4040
}
4141
}
4242

43-
[[noreturn]] void terminate_handler() {
43+
[[noreturn]] void MSVC_CDECL terminate_handler() {
4444
// TODO: Support std::nested_exception?
4545
try {
4646
auto ptr = std::current_exception();

src/utils/common.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@
2525
#define NODISCARD
2626
#endif
2727

28+
#if IS_MSVC
29+
#define MSVC_CDECL __cdecl
30+
#else
31+
#define MSVC_CDECL
32+
#endif
33+
2834
namespace cpptrace {
2935
namespace detail {
3036
static const stacktrace_frame null_frame {

0 commit comments

Comments
 (0)