Quantcast
Channel: Visual Leak Detector for Visual C++ 2008-2015
Viewing all articles
Browse latest Browse all 704

Created Unassigned: Pre-processor define for VLD (Conditional) [10608]

$
0
0
It would be useful to be able to check for the existance of VLD. We have a few projects that run with VLD if you have it installed, but to be nice to developers pulling our projects we would like to be able to wrap the "vld.h" include in a pre-processor condition.

Could you add the following lines to the installed .props files:

```
<ItemDefinitionGroup>
<ClCompile>
<PreprocessorDefinitions>VLD;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
```

Then we could do:

```
#if defined(VLD)
#include <vld.h>
#endif
```

And now VLD only runs if the user has it (also helps for platform independence).

Thank you so much for VLD!




Viewing all articles
Browse latest Browse all 704

Trending Articles



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