From 175abaa34d9268920b51e54b2795a3e9cb5f38a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 22 Jul 2016 17:54:16 +0200 Subject: [PATCH] bump simplecpp --- externals/simplecpp/simplecpp.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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)) {