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.
#define ANNOTATE_EXPAND_NULL #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:
/DANNOTATE_EXPAND_NULL
Parent topic: Tips for Annotation Use with C/C++ Programs
Inglese