summaryrefslogtreecommitdiff
path: root/src/parser/parser.h
diff options
context:
space:
mode:
authorMathias Preiner <mathias.preiner@gmail.com>2021-03-10 15:58:11 -0800
committerGitHub <noreply@github.com>2021-03-10 23:58:11 +0000
commit982d1bea6ec9ac9b8932f99762ab2b3908958f32 (patch)
tree4f5ba9a5559d9b273a514f60eb9b354555e74b95 /src/parser/parser.h
parent489209a31c2a2bf2f5ce465c1a79f73aad90c764 (diff)
Use Assert instead of assert. (#6095)
This commit replaces all uses of assert with Assert from base/check.h to ensure that all assertions get checked in production builds with enabled assertions.
Diffstat (limited to 'src/parser/parser.h')
-rw-r--r--src/parser/parser.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/parser/parser.h b/src/parser/parser.h
index abadaea3b..7789fd148 100644
--- a/src/parser/parser.h
+++ b/src/parser/parser.h
@@ -19,7 +19,6 @@
#ifndef CVC4__PARSER__PARSER_H
#define CVC4__PARSER__PARSER_H
-#include <cassert>
#include <list>
#include <set>
#include <string>
@@ -271,12 +270,8 @@ public:
implementation optional by returning false by default. */
virtual bool logicIsSet() { return false; }
- virtual void forceLogic(const std::string& logic)
- {
- assert(!d_logicIsForced);
- d_logicIsForced = true;
- d_forcedLogic = logic;
- }
+ virtual void forceLogic(const std::string& logic);
+
const std::string& getForcedLogic() const { return d_forcedLogic; }
bool logicIsForced() const { return d_logicIsForced; }
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback