diff options
Diffstat (limited to 'src/ui/macro_expander.cpp')
| -rw-r--r-- | src/ui/macro_expander.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/ui/macro_expander.cpp b/src/ui/macro_expander.cpp index 93c512d..e7cf755 100644 --- a/src/ui/macro_expander.cpp +++ b/src/ui/macro_expander.cpp @@ -319,22 +319,19 @@ namespace Hsdbg continue; } - const bool paste_operand = - (i + 1 < body.size() && body[i + 1].text == "##") || - (i > 0 && body[i - 1].text == "##"); + const bool paste_operand = (i + 1 < body.size() && body[i + 1].text == "##") || + (i > 0 && body[i - 1].text == "##"); if (const int index = param_index(def, tok.text); index >= 0) { - const std::vector<PpToken> value = - paste_operand ? raw_tokens(index) : expanded_tokens(index); + const std::vector<PpToken> value = paste_operand ? raw_tokens(index) : expanded_tokens(index); out.insert(out.end(), value.begin(), value.end()); continue; } if (def.variadic && tok.text == "__VA_ARGS__") { - const std::vector<PpToken> value = - paste_operand ? raw_varargs() : expanded_varargs(); + const std::vector<PpToken> value = paste_operand ? raw_varargs() : expanded_varargs(); out.insert(out.end(), value.begin(), value.end()); continue; } @@ -409,8 +406,7 @@ namespace Hsdbg auto arity_ok(const MacroDef& def, const ArgList& args) -> bool { - const size_t provided = - args.size() == 1 && args.front().empty() ? 0 : args.size(); + const size_t provided = args.size() == 1 && args.front().empty() ? 0 : args.size(); if (def.variadic) return provided >= def.params.size(); |
