To add another instance of the same preprocessor

In the table in the previous task, To add an instance of an additional preprocessor, note that the preprocessor keys have a numeric suffix "_01". You can use the subsequent numbers "_02", "_03" and so on to create multiple preprocessor instances from the same ADDONS, if required. This might be helpful if you need to use the same preprocessor with different directives and you do not want to type them every time.

To create another instance of the same preprocessor:

  1. Add a second set of the same registry entries for the PreProcessor key but use a different numeric suffix – for example, PP_02, PPName_02, and so on.

    You can name this second instance of the preprocessor – "XYZ preprocessor (no directives)“ – as this instance will not use any arguments.

For example, you can create another instance of the "XYZ preprocessor" for which you do not pass preprocessor options:

GUID-FE41F764-E173-4591-8796-2B9F8CD0EC0E-low.png

The image below shows how the two instances of the preprocessor will appear in the project and file properties in Visual Studio:

This is how Enterprise Developer shows the two instances of the same preprocessor in the project properties in Enterprise Developer

GUID-11CFDC79-556F-4305-B57D-B17ECD4D1532-low.png