Make pragmas pass through the preprocessor so the user can write them manually

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-11-18 15:30:24 +01:00
parent 9898ab5316
commit d3861cea9f

View file

@ -977,6 +977,10 @@ static bool ftepp_hash(ftepp_t *ftepp)
ftepp_update_output_condition(ftepp); ftepp_update_output_condition(ftepp);
break; break;
} }
else if (!strcmp(ftepp_tokval(ftepp), "pragma")) {
ftepp_out(ftepp, "#", false);
break;
}
else { else {
ftepp_error(ftepp, "unrecognized preprocessor directive: `%s`", ftepp_tokval(ftepp)); ftepp_error(ftepp, "unrecognized preprocessor directive: `%s`", ftepp_tokval(ftepp));
return false; return false;