The following example uses #pragma to enable coverage analysis if the DEBUG constant has been #defined:

#ifdef DEBUG

   #pragma coverage(on) 

#else

   #pragma coverage(off) 

#endif