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 » U++ Library support » U++ Core » CHECK macro
Re: CHECK macro [message #5994 is a reply to message #5993] Fri, 27 October 2006 03:41 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
It is similar to ASSERT, but expression gets evaluated even in release mode (therefore you do not lose desired side effects - e.g. you can use CHECK to test the return code of some routine. If you would do it with ASSERT, routine would not get called in release mode).

I guess the simple thing to do is #undef CHECK before including your unit testing stuff.

Mirek

P.S.: Unit testing is on my radar for future U++ development, perhaps you could share your opinions in develeopment forum...
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: strcmp() works with String?
Next Topic: dynamic loading of Ctrls using dli?
Goto Forum:
  


Current Time: Sat Aug 16 16:58:27 CEST 2025

Total time taken to generate the page: 0.06034 seconds