mirror of
https://github.com/cc65/cc65.git
synced 2024-06-07 07:29:33 +00:00
Improved Diagnostic with #include.
This commit is contained in:
parent
5d5bd472c6
commit
9565f41381
|
@ -1254,7 +1254,7 @@ static void DoInclude (void)
|
|||
break;
|
||||
|
||||
default:
|
||||
PPError ("'\"' or '<' expected");
|
||||
PPError ("#include expects \"FILENAME\" or <FILENAME>");
|
||||
goto Done;
|
||||
}
|
||||
NextChar ();
|
||||
|
@ -1274,7 +1274,7 @@ static void DoInclude (void)
|
|||
CheckExtraTokens ("include");
|
||||
/* Open the include file */
|
||||
OpenIncludeFile (SB_GetConstBuf (&Filename), IT);
|
||||
} else if (CurC == '\0') {
|
||||
} else {
|
||||
/* No terminator found */
|
||||
PPError ("#include expects \"FILENAME\" or <FILENAME>");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user