Hi, I have a question about macros. I am developing a cpp program that will be run as a standalone exe. The exe will run with a parameter inverse=true or false.
I wish to define 2 macros prefix and suffix such as their values should depend on the command line parameter inverse.Code:
test.exe -inverse=true OR test.exe -inverse=false.
When inverse is true,
Whereas, when inverse is false,Code:
#define PREFIX "P5F"
#define SUFFIX "P5J"
How can I achieve this? Is there a way I can define a macro so that the value of PREFIX and SUFFIX are set depending on the value of parameter "inverse".Code:
#define PREFIX "P5J"
#define SUFFIX "P5F"