I would like to override a macro from the command line. Somewhere in my source, there is a definition like this:
#define MY_FOO 1
What I wo
If you are trying to make something that is configurable from the command line, and you can change the source code, then you can use #ifndef to define the macro only if it is not already defined. So when you define the macro, the code will see it and not overwrite it, but if you don't define it it will have a default value.