Home » Community » Newbie corner » Usage of DUMPC and other macros by using flags
Re: Usage of DUMPC and other macros by using flags [message #29347 is a reply to message #29345] |
Fri, 15 October 2010 19:12 |
|
281264 wrote on Fri, 15 October 2010 17:50 | An additional question regarding ASSERT() macro; how can it be activated/deactivated? I have tried compiling both MSC Debug and Optimal and in both cases it is always activated.
Javier
|
The idea behind ASSERT is that it should never, ever trigger. The condition in it is ussualy protecting something that would lead into application crash or data coruption, so it is ussualy safer to let the application crash in semi-controllable manner before it demages something. But as I said alreay: good production code should never trigger them anyway
If you want to use them in debug mode, then you'll have to define your own, using something like the code in the first post.
Honza
|
|
|
Goto Forum:
Current Time: Mon May 13 11:07:58 CEST 2024
Total time taken to generate the page: 0.02482 seconds
|