Skip spaces around macro arguments
authorJim Paris <jim@jtan.com>
Thu, 17 May 2018 04:06:49 +0000 (00:06 -0400)
committerJim Paris <jim@jtan.com>
Thu, 17 May 2018 04:06:49 +0000 (00:06 -0400)
frontends/verilog/preproc.cc

index c43ff4e3a7efe745f4a73339006e0c575edda7e3..00124cb42628965d175aab60bf8cd6b6e77e76bd 100644 (file)
@@ -244,6 +244,7 @@ static bool try_expand_macro(std::set<std::string> &defines_with_args,
                                args.push_back(std::string());
                                while (1)
                                {
+                                       skip_spaces();
                                        tok = next_token(true);
                                        if (tok == ")" || tok == "}" || tok == "]")
                                                level--;