mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-12 13:59:46 -04:00
chore(safe_main): compatibility with cpptrace-1
This commit is contained in:
parent
adf7cc2e13
commit
81e265401f
@ -38,9 +38,15 @@
|
||||
#include <cpptrace/formatting.hpp>
|
||||
#define DWARFS_CPPTRACE_HAS_FORMATTING
|
||||
#endif
|
||||
#include <cpptrace/version.hpp>
|
||||
#if CPPTRACE_VERSION < 10000
|
||||
#define DWARFS_TRY CPPTRACE_TRYZ
|
||||
#define DWARFS_CATCH CPPTRACE_CATCHZ
|
||||
#else
|
||||
#define DWARFS_TRY CPPTRACE_TRY
|
||||
#define DWARFS_CATCH CPPTRACE_CATCH
|
||||
#endif
|
||||
#else
|
||||
#define DWARFS_TRY try
|
||||
#define DWARFS_CATCH catch
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user