Defining C Preprocessor constants from the command line

This in a header file:

#define FOO_FUNKY_SWITCH 1

and this in a compiler invocation:

-DFOO_FUNKY_SWITCH=1

Do the same thing.

Personally I don’t love having my compiles filled with switches since it imposes extra cognitive load in my opinion when compiling code.