Home » Community » Newbie corner » Usage of DUMPC and other macros by using flags
Re: Usage of DUMPC and other macros by using flags [message #29340 is a reply to message #29338] |
Fri, 15 October 2010 16:35 |
|
Hi Javier,
The DEBUG flag is set up automaticaly when compiling in Debug mode. You can test it with #ifdef flagDEBUG in your code.
The debugging macros DUMP,DUMPC,DUMPM,LOG etc. are already defined only in debug mode, you don't have to take care of that yourself.
I guess that is all you need Your solution was of course correct, but unnecessary. BTW the code behind the LOG, DUMP,... is basicaly the same as yours
Additionally, if you use the dot (.FLAG), then it is used for the main package and for any package that has this FLAG in its Accept field in package manager.
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Mon May 13 20:36:10 CEST 2024
Total time taken to generate the page: 0.02897 seconds
|