Skip to content

Commit 990c969

Browse files
author
Your Name
committed
Revert "Remove dead branch"
This reverts commit e2e5ca2.
1 parent e2e5ca2 commit 990c969

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

externals/simplecpp/simplecpp.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2332,6 +2332,9 @@ namespace simplecpp {
23322332
const Token *nextTok = B->next;
23332333

23342334
if (canBeConcatenatedStringOrChar) {
2335+
if (unexpectedA)
2336+
throw invalidHashHash::unexpectedToken(tok->location, name(), A);
2337+
23352338
// It seems clearer to handle this case separately even though the code is similar-ish, but we don't want to merge here.
23362339
// TODO The question is whether the ## or varargs may still apply, and how to provoke?
23372340
if (expandArg(tokensB, B, parametertokens)) {

0 commit comments

Comments
 (0)