File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff line change 2525 #define NODISCARD
2626#endif
2727
28+ #if IS_MSVC
29+ #define MSVC_CDECL __cdecl
30+ #else
31+ #define MSVC_CDECL
32+ #endif
33+
2834namespace cpptrace {
2935namespace detail {
3036 static const stacktrace_frame null_frame {
You can’t perform that action at this time.
0 commit comments