I have several logging protocols in my code in lines:
if (pri > PriorityLevel ) \
printf( msg,
I know that I can use LCOV_EXCL_START, LCOV_EXCL_STOP or LCOV_EXCL_LINE to suppress a branch. But this only works if I add it to every place that I call LOG_MSG:
LOG_MSG(ERROR, "An Error has occurred\n");//LCOV_EXCL_LINE
I would like to include this comment in the macro, but LCOV will not recognize it if I put it there. For example, this code still creates branches.
if (pri > PriorityLevel ) \
printf( msg,
Is there a good way to suppress these branches in the macro itself?
source
share