Hi,
I'm writing a C program and I would like to know if the following
thing is feasable?
1) My program is made of 10 files.
2) Each module can print a debug string over the standard output. For
example:
debug_printf (MODULE_1, "The value of temperature is %d",
temperature);
debug_printf (MODULE_2, "I received the following char - %c", ch);
debug_printf (MODULE_3, "Ok, I'm done");
3) I want to be able to:
- switch off all the printf call. That means that the "debug_printf"
call must be removed by the preprocessor
- switch on selected printf call
Thanks in advance,
Enrico Migliore
--
comp.lang.c.moderated - moderation address:
cl...@plethora.net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.