From: Jim Paris Date: Thu, 17 May 2018 04:06:49 +0000 (-0400) Subject: Skip spaces around macro arguments X-Git-Tag: yosys-0.8~90^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=872d8d49e98fc5a4090ce20d902afbd0090c8c84;p=yosys.git Skip spaces around macro arguments --- diff --git a/frontends/verilog/preproc.cc b/frontends/verilog/preproc.cc index c43ff4e3a..00124cb42 100644 --- a/frontends/verilog/preproc.cc +++ b/frontends/verilog/preproc.cc @@ -244,6 +244,7 @@ static bool try_expand_macro(std::set &defines_with_args, args.push_back(std::string()); while (1) { + skip_spaces(); tok = next_token(true); if (tok == ")" || tok == "}" || tok == "]") level--;