This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

#define - problem

Hi,
for debugging we often use things like:

#ifdef MONITOR
  printf("initialized\n");
#endif

Now we had another idea

#ifdef MONITOR
  #define debug_printf printf
#else
  #define debug_printf //
#endif
debug_printf("inittialized\n");

The intention was to replace the word debug_printf with "//". So in the code we can alway use the debug_printf()-funktion without #ifdefs. But it doesn't work.

Any ideas?

Bye
...Leo

0