Skip to content

Commit

Permalink
Detect exceptions in a more cross platform manner (clang + gcc)
Browse files Browse the repository at this point in the history
  • Loading branch information
arximboldi committed Sep 17, 2024
1 parent 590da88 commit 0555d63
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lager/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@
#endif

#if !defined(LAGER_USE_EXCEPTIONS) && !defined(LAGER_NO_EXCEPTIONS)
#ifdef __has_feature
#if !__has_feature(cxx_exceptions)
#if !__cpp_exceptions
#define LAGER_NO_EXCEPTIONS
#endif
#endif
#endif

#ifdef LAGER_NO_EXCEPTIONS
#define LAGER_TRY if (true)
Expand All @@ -43,4 +41,3 @@
#define LAGER_THROW(expr) throw expr
#define LAGER_RETHROW throw
#endif

0 comments on commit 0555d63

Please sign in to comment.