mirror of
https://github.com/mhx/dwarfs.git
synced 2025-08-03 17:56:12 -04:00
chore(safe_main): compatibility with cpptrace-1
This commit is contained in:
parent
c0725c40fb
commit
092e77574c
@ -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