mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
Signal error for multiline comment right of #if
This commit is contained in:
parent
745e0a4ca9
commit
f764947c73
1 changed files with 6 additions and 0 deletions
|
|
@ -968,6 +968,12 @@ int main(int argc, char **argv, char **envp)
|
|||
/* Signal rhcomment, but ignore position */
|
||||
|
||||
rhcomment = -1;
|
||||
|
||||
if (ncomment > 0 && !strncmp(&line[ii], "if", 2))
|
||||
{
|
||||
ERROR("No multiline comment right of code allowed here",
|
||||
lineno, n);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue