[qfcc] Add a #notice directive

Haven't got things working properly and I'm already extending the
preprocessor :P. It proved handy for debugging :)
This commit is contained in:
Bill Currie 2023-10-28 08:43:17 +09:00
parent 80c9132199
commit b52b803c2a

View file

@ -125,7 +125,7 @@ parse_error (void *scanner)
%token INCLUDE EMBED
%token DEFINE UNDEF
%token <text> TEXT ID IDp
%token ERROR WARNING
%token ERROR WARNING NOTICE
%token PRAGMA LINE
%token IF IFDEF IFNDEF ELSE ELIF ELIFDEF ELIFNDEF ENDIF
%token DEFINED EOD
@ -194,6 +194,8 @@ directive
eod
| WARNING text { warning (0, "%s", $text->str); dstring_delete ($text); }
eod
| NOTICE text { notice (0, "%s", $text->str); dstring_delete ($text); }
eod
| PRAGMA expand { rua_start_pragma (scanner); }
pragma_params { pragma_process (); }
eod