Andrew Beckett
Senior Fellow
    
Offline

Life, don't talk to me about Life...
Posts: 1742
Bracknell, UK
|
Yes. Use the cpp (C pre-processor) directives #ifdef, #ifndef etc, and then run "spectre -Dvar" or "spectre -Dvar=val" to define them on the command line. You can also just run "spectre -E" to invoke with the C preprocessor first, which happens if you pass -D too. More on cpp can be found in "man cpp".
Andrew
|