From: Wolfgang (Blub) Bumiller Date: Sun, 18 Nov 2012 14:30:24 +0000 (+0100) Subject: Make pragmas pass through the preprocessor so the user can write them manually X-Git-Tag: 0.1.9~404^2~16 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d3861cea9f305fe6a514b66986e7e8f098651410;p=xonotic%2Fgmqcc.git Make pragmas pass through the preprocessor so the user can write them manually --- diff --git a/ftepp.c b/ftepp.c index f0c34e4..295139e 100644 --- a/ftepp.c +++ b/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;