U++ framework
Do not panic. Ask here before giving up.

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: 14291
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: Tue Jun 23 02:58:04 GMT+2 2026

Total time taken to generate the page: 0.00503 seconds