I am trying to write something like this:
#define COV_ON(x)
#ifdef COVERAGE_TOOL
_Pragma (COVERAGE #x)
#endif
Is there any way to define COV_ON
like this? I know what I have done above is wrong as I can't have #ifdef
inside #define. (#
is not an allowed character in #define
).
So is there any solution?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…