1 parent 830de66 commit c356645Copy full SHA for c356645
1 file changed
tools/src/tool/safe_main.cpp
@@ -38,9 +38,14 @@
38
#include <cpptrace/formatting.hpp>
39
#define DWARFS_CPPTRACE_HAS_FORMATTING
40
#endif
41
+#if CPPTRACE_VERSION < 0x00010000
42
#define DWARFS_TRY CPPTRACE_TRYZ
43
#define DWARFS_CATCH CPPTRACE_CATCHZ
44
#else
45
+#define DWARFS_TRY CPPTRACE_TRY
46
+#define DWARFS_CATCH CPPTRACE_CATCH
47
+#endif
48
+#else
49
#define DWARFS_TRY try
50
#define DWARFS_CATCH catch
51
0 commit comments