Skip to content

Commit c356645

Browse files
committed
chore(safe_main): compatibility with cpptrace-1
1 parent 830de66 commit c356645

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tools/src/tool/safe_main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,14 @@
3838
#include <cpptrace/formatting.hpp>
3939
#define DWARFS_CPPTRACE_HAS_FORMATTING
4040
#endif
41+
#if CPPTRACE_VERSION < 0x00010000
4142
#define DWARFS_TRY CPPTRACE_TRYZ
4243
#define DWARFS_CATCH CPPTRACE_CATCHZ
4344
#else
45+
#define DWARFS_TRY CPPTRACE_TRY
46+
#define DWARFS_CATCH CPPTRACE_CATCH
47+
#endif
48+
#else
4449
#define DWARFS_TRY try
4550
#define DWARFS_CATCH catch
4651
#endif

0 commit comments

Comments
 (0)