mirror of
https://github.com/cc65/cc65.git
synced 2025-03-01 11:29:27 +00:00
Allowed the pp-tokens following #error and #warning directives to be optional.
This commit is contained in:
parent
19ddffecba
commit
d3d6de2704
@ -1028,7 +1028,7 @@ static void DoError (void)
|
||||
{
|
||||
SkipWhitespace (0);
|
||||
if (CurC == '\0') {
|
||||
PPError ("Invalid #error directive");
|
||||
PPError ("#error");
|
||||
} else {
|
||||
PPError ("#error: %s", SB_GetConstBuf (Line) + SB_GetIndex (Line));
|
||||
}
|
||||
@ -1212,7 +1212,7 @@ static void DoWarning (void)
|
||||
{
|
||||
SkipWhitespace (0);
|
||||
if (CurC == '\0') {
|
||||
PPError ("Invalid #warning directive");
|
||||
PPWarning ("#warning");
|
||||
} else {
|
||||
PPWarning ("#warning: %s", SB_GetConstBuf (Line) + SB_GetIndex (Line));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user