xo-reader: ++ logging
This commit is contained in:
parent
84e6d3f347
commit
c46c0f1cc4
6 changed files with 43 additions and 3 deletions
|
|
@ -394,9 +394,17 @@ namespace xo {
|
|||
constexpr bool c_debug_flag = true;
|
||||
scope log(XO_DEBUG(c_debug_flag));
|
||||
|
||||
const char * c_self_name = "exprstate::on_expr_with_semicolon";
|
||||
|
||||
log && log(xtag("exstype", this->exs_type_),
|
||||
xtag("expr", expr));
|
||||
|
||||
throw std::runtime_error
|
||||
(tostr(c_self_name,
|
||||
": unexpected expression for parsing state",
|
||||
xtag("expr", expr),
|
||||
xtag("state", *this)));
|
||||
|
||||
assert(false);
|
||||
} /*on_expr_with_semicolon*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue