Hi,
I want to define a macro such that, when defined, it would be able to comment out a function (specially invocation - but then all for declaration, definition and invocation would be nice)
For example,
DIAG(a, b, c);
would get transformed to:
/* DIAG(a, b, c); */ (unlikely)
or
/* DIAG(a, b, c); */;
or
/* DIAG(a, b, c) */;
.. etc
The problem is, all C comments are replaced with single spaces by the preprocessor. (AFAIK - am I wrong?)
Any ideas? The main point is to avoid the function invocations in certain runs rather than avoiding executing the body of the function (in that case, putting a return befor the first expression would have sufficed)