Skip to content

Commit c09d4e2

Browse files
committed
Warning with a newline in a conditional expression in a \if command
When having a problem like: ``` /// \file /** * ggg */ typedef enum { /** hhh * \line_ * @if (INTERNAL || * NO_INTERNAL) * \line_ * @endif * \line_ */ BS3 } bse_type_enum; ``` we get a warning like: ``` .../b.h:10: warning: problem evaluating expression '(INTERNAL || NO_INTERNAL)': Parenthesis ) missing ``` due to the fact that a newline is not seen as "white-space" character during the evaluation of the conditional expression.
1 parent aff1cb4 commit c09d4e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/condparser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ void CondParser::getToken()
113113
//printf("\tgetToken e:{%c}, ascii=%i, col=%i\n", *e, *e, e-expr);
114114

115115
// skip over whitespaces
116-
while (*m_e == ' ' || *m_e == '\t') // space or tab
116+
while (*m_e == ' ' || *m_e == '\t' || *m_e == '\n') // space or tab or newline
117117
{
118118
m_e++;
119119
}

0 commit comments

Comments
 (0)