diff --git a/externals/simplecpp/simplecpp.cpp b/externals/simplecpp/simplecpp.cpp index 7073f0049..e59327a1a 100644 --- a/externals/simplecpp/simplecpp.cpp +++ b/externals/simplecpp/simplecpp.cpp @@ -839,6 +839,10 @@ public: } tok = tok->next; + if (tok == endToken) { + output->push_back(new Token(*tok->previous)); + break; + } if (tok->op == '#') { // A##B => AB Token *A = output->end();