I am currently using Linux CentOS and programming in FORTRAN 90 using Portland 7.1 compiler.
I am able to set in the preprocessor directives a flag called TEST. when I go to use logic in my code i can write
#ifdef TEST
execute something
#endif
Furthermore, if I want to negate the logic I can type:
#ifndef
execute something
#endif
Now, if I want to add some boolean logic like AND, OR etc. I have to use slightly different syntax as follows:
#if defined TEST || defined NEWTEST
execute something
#endif
This allows me to say if the Flag "TEST" or the flag "NEWTEST" is defined then do something. What I cannot seem to find is how to negate the logic such that it says: if the Flag "TEST" is NOT defined OR the flag NEWTEST is NOT defined...
The syntax I have tried to come up with does not appear to work. I am looking for something similar to the following:
#if not defined TEST && not defined NEWTEST
execute something
#endif
Any ideas??