diff --git a/externals/simplecpp/simplecpp.cpp b/externals/simplecpp/simplecpp.cpp index 59684b657..3d480d50a 100644 --- a/externals/simplecpp/simplecpp.cpp +++ b/externals/simplecpp/simplecpp.cpp @@ -809,6 +809,12 @@ public: return nameToken->next; } + // No arguments => not macro expansion + if (nameToken->next && nameToken->next->op != '(') { + output->push_back(new Token(nameToken->str, loc)); + return nameToken->next; + } + // Parse macro-call const std::vector parametertokens(getMacroParameters(nameToken, !expandedmacros1.empty())); if (parametertokens.size() != args.size() + (args.empty() ? 2U : 1U)) {