mirror of
https://github.com/cc65/cc65.git
synced 2025-08-08 06:25:17 +00:00
Improved Diagnostic with #include.
This commit is contained in:
@@ -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>");
|
||||
}
|
||||
|
Reference in New Issue
Block a user