Intel® Advisor User Guide

ID 766448
Date 10/31/2024
Public
Document Table of Contents

Control 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.

    #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