Solution-wide #define

前端 未结 11 2292
予麋鹿
予麋鹿 2020-12-05 09:29

Is there a way to globally declare a #define?

Like I want to have a file that has for instance,

#define MONO

and I want all source-

11条回答
  •  天命终不由人
    2020-12-05 09:45

    The proper place for a pre-processor directive is the VS build configuration. If you are using a command line to build your solution you can also pass it using /define option.

提交回复
热议问题