detect --coverage option from code

Jonathan Wakely jwakely.gcc@gmail.com
Mon Mar 13 12:42:00 GMT 2017


On 13 March 2017 at 11:57, Raul Benet wrote:
> (I know I could just add a -D__MY_COVERAGE_DFINE to my compilation options = when doing "-coverage" but that makes the source code less maintainable)

And is undefined behaviour because __MY_COVERAGE_DFINE is a reserved
name. Why would you add underscores to the start?



More information about the Gcc-help mailing list