diff options
Diffstat (limited to 'src/rulebase.cpp')
-rw-r--r-- | src/rulebase.cpp | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/rulebase.cpp b/src/rulebase.cpp index f44421c..207d116 100644 --- a/src/rulebase.cpp +++ b/src/rulebase.cpp @@ -35,10 +35,21 @@ RuleBase::RuleBase() : void RuleBase::print(const std::string &text) const { - printf("[%s:%d]: V%s: %s\n", file.c_str(), line, - ruleName.c_str(), text.c_str()); -// printf("%s [%s:%d]: V%s: %s\n", ruleName.c_str(), -// file.c_str(), line, ruleName.c_str(), text.c_str()); + printf("[%s:%d]: V%s: %s\n", + file.c_str(), + line, + ruleName.c_str(), + text.c_str()); +} + +void RuleBase::print(const std::string &text, + const int lineNumber) const +{ + printf("[%s:%d]: V%s: %s\n", + file.c_str(), + lineNumber, + ruleName.c_str(), + text.c_str()); } void RuleBase::printRaw(const std::string &text) const |