Quantcast
Channel: C#
Viewing all articles
Browse latest Browse all 1853

Controlling the Expansion of advisor-annotate.h

$
0
0

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
Inglese

Viewing all articles
Browse latest Browse all 1853

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>