Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

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 Wink

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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: I'm a U newbie
Next Topic: tar library for u++
Goto Forum:
  


Current Time: Mon May 13 11:07:58 CEST 2024

Total time taken to generate the page: 0.02482 seconds