Hi all,

I am faced with a tricky issue and would very much like somebody to either give me a solution or some useful pointers.

I would like to add a feature in my program that will 'bypass' the printf() calls if a particular condition is not met. Now I may have a lot of printf()s all over the program so checking for the condition near each such function is not a feasible option.
My code should look something like this

Code:
PRINT(*parameter*)
{
#ifndef CONDITION
printf(*parameter*)
#endif
}

void main()
{
PRINT(*anything can go in here*);
}
I am open to any other ideas.

Thanks,
Leo