mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-19 07:51:08 +00:00
[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:
parent
80c9132199
commit
b52b803c2a
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue