diff options
author | Aina Niemetz <aina.niemetz@gmail.com> | 2021-04-09 17:22:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-09 17:22:07 -0700 |
commit | f87f038c5f0821d0fefb01cea00bfdec6004da91 (patch) | |
tree | d948178e1c0d2dc459a976f0d187d2d41a5437c0 /src/base/exception.h | |
parent | 550c49a7dd2b13ea29743458336f0c0a0fb6099a (diff) |
Rename CVC4_ macros to CVC5_. (#6327)
Diffstat (limited to 'src/base/exception.h')
-rw-r--r-- | src/base/exception.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/base/exception.h b/src/base/exception.h index f3a5326fc..579a8cdad 100644 --- a/src/base/exception.h +++ b/src/base/exception.h @@ -119,18 +119,23 @@ inline std::ostream& operator<<(std::ostream& os, const Exception& e) template <class T> inline void CheckArgument(bool cond, const T& arg, const char* tail); -template <class T> inline void CheckArgument(bool cond, const T& arg CVC4_UNUSED, - const char* tail CVC4_UNUSED) { +template <class T> +inline void CheckArgument(bool cond, + const T& arg CVC5_UNUSED, + const char* tail CVC5_UNUSED) +{ if(__builtin_expect( ( !cond ), false )) { throw ::cvc5::IllegalArgumentException("", "", tail); - } \ + } } template <class T> inline void CheckArgument(bool cond, const T& arg); -template <class T> inline void CheckArgument(bool cond, const T& arg CVC4_UNUSED) { +template <class T> +inline void CheckArgument(bool cond, const T& arg CVC5_UNUSED) +{ if(__builtin_expect( ( !cond ), false )) { throw ::cvc5::IllegalArgumentException("", "", ""); - } \ + } } class CVC4_EXPORT LastExceptionBuffer |