recognize but ignore #pragma

This commit is contained in:
ceriel
1989-03-31 10:56:53 +00:00
parent 5191ba299c
commit f9269a9aca
3 changed files with 8 additions and 0 deletions

View File

@@ -116,6 +116,12 @@ domacro()
case K_UNDEF: /* "undef" */
do_undef();
break;
case K_PRAGMA: /* "pragma" */
/* ignore for now
*/
PushBack();
skipline();
break;
default:
/* invalid word seen after the '#' */
error("%s: unknown control", id->id_text);