diff options
Diffstat (limited to 'src/base/check.h')
-rw-r--r-- | src/base/check.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/base/check.h b/src/base/check.h index 915f6e4cb..93ad71100 100644 --- a/src/base/check.h +++ b/src/base/check.h @@ -29,7 +29,7 @@ ** AlwaysAssert may be added. **/ -#include "cvc4_private.h" +#include "cvc4_private_library.h" #ifndef CVC4__CHECK_H #define CVC4__CHECK_H @@ -65,6 +65,15 @@ #define CVC4_PREDICT_TRUE(x) x #endif +#ifdef __has_cpp_attribute +#if __has_cpp_attribute(fallthrough) +#define CVC4_FALLTHROUGH [[fallthrough]] +#endif // __has_cpp_attribute(fallthrough) +#endif // __has_cpp_attribute +#ifndef CVC4_FALLTHROUGH +#define CVC4_FALLTHROUGH +#endif + namespace CVC4 { // Implementation notes: |