diff options
Diffstat (limited to 'src/parser/parser.h')
-rw-r--r-- | src/parser/parser.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/parser/parser.h b/src/parser/parser.h index fcc37d5d3..8f9cc425a 100644 --- a/src/parser/parser.h +++ b/src/parser/parser.h @@ -322,7 +322,12 @@ public: implementation optional by returning false by default. */ virtual bool logicIsSet() { return false; } - void forceLogic(const std::string& logic) { assert(!d_logicIsForced); d_logicIsForced = true; d_forcedLogic = logic; } + virtual void forceLogic(const std::string& logic) + { + assert(!d_logicIsForced); + d_logicIsForced = true; + d_forcedLogic = logic; + } const std::string& getForcedLogic() const { return d_forcedLogic; } bool logicIsForced() const { return d_logicIsForced; } |