Adding a grammar rule with conditional compilation

Dean dluga93 at gmail.com
Sat Feb 25 21:59:30 CET 2017


Hello,

I'm modifying some parts of the code, and I've added a new grammar rule 
for creating static routes in the config.Y file.

However, I would like this rule to only be enabled based on a 
preprocessor definition, with an #ifdef, or throw a syntax error otherwise.

I can't figure out a way to do this? Any suggestions?

Thank you.



More information about the Bird-users mailing list