...how do I set up C Preprocessor Definitions?
How do I define C preprocessor definitions without modifying any code?
You can define C preprocessor definitions in the project system using the Code > Preprocessor > Preprocessor Definitions project property.
For example, adding FOO=1 to the Code > Preprocessor > Preprocessor Definitions project property is equivalent to #define FOO 1 in source code.
-
Is it possible to make these definitions dynamic? Say I have a external tool that can make preprocessor definitions, but having them written out to a h-file doesn't affect the complete project or imported projects, just files/projects including this file. Instead I would like a way to make the define available for all projects in a solution.
Please sign in to leave a comment.
Comments
1 comment