The command line option /D
can be used to define preprocessor symbols. I don't know, though, whether it can also be used to define macros with arguments, but it should be an easy matter to test that.
Edit: Failing that, the /FI
option ("force include") should allow you to do what you want. Quoting the MSDN documentation:
This option has the same effect as specifying the file with double quotation marks in an #include directive on the first line of every source file [...] .
You can then put your #define
s in that forced include file.