summaryrefslogtreecommitdiff
path: root/src/api/cpp/cvc5_checks.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/cpp/cvc5_checks.h')
-rw-r--r--src/api/cpp/cvc5_checks.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/api/cpp/cvc5_checks.h b/src/api/cpp/cvc5_checks.h
index 35c21df9c..71b17cef1 100644
--- a/src/api/cpp/cvc5_checks.h
+++ b/src/api/cpp/cvc5_checks.h
@@ -43,6 +43,14 @@ namespace api {
CVC5_PREDICT_TRUE(cond) \
? (void)0 : OstreamVoider() & CVC5ApiRecoverableExceptionStream().ostream()
+/**
+ * The base check macro for throwing unsupported exceptions.
+ * Throws a CVC5ApiUnsupportedException if 'cond' is false.
+ */
+#define CVC5_API_UNSUPPORTED_CHECK(cond) \
+ CVC5_PREDICT_TRUE(cond) \
+ ? (void)0 : OstreamVoider() & CVC5ApiUnsupportedExceptionStream().ostream()
+
/* -------------------------------------------------------------------------- */
/* Not null checks. */
/* -------------------------------------------------------------------------- */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback