Controlling the Expansion of advisor-annotate.h

Depending on your particular environment, you may want to control the expansion of C/C++ macros in advisor-annotate.h at the inclusion site.

Defining ANNOTATE_EXPAND_NULL before you include advisor-annotate.h causes the annotation macros to have a null expansion, which will remove the actions from your code. If you have a project where some configurations, or some users, want to have annotations, while others should not have them present, this control may be helpful.

    #include "advisor-annotate.h"

You can also do this by defining the value as part of your compilation command using the /D option. For example:

For more complete information about compiler optimizations, see our Optimization Notice.