mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 14:12:36 +00:00
Make pragmas pass through the preprocessor so the user can write them manually
This commit is contained in:
parent
9898ab5316
commit
d3861cea9f
1 changed files with 4 additions and 0 deletions
4
ftepp.c
4
ftepp.c
|
@ -977,6 +977,10 @@ static bool ftepp_hash(ftepp_t *ftepp)
|
|||
ftepp_update_output_condition(ftepp);
|
||||
break;
|
||||
}
|
||||
else if (!strcmp(ftepp_tokval(ftepp), "pragma")) {
|
||||
ftepp_out(ftepp, "#", false);
|
||||
break;
|
||||
}
|
||||
else {
|
||||
ftepp_error(ftepp, "unrecognized preprocessor directive: `%s`", ftepp_tokval(ftepp));
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue