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 » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » ASSERT_
ASSERT_ [message #12357] Fri, 26 October 2007 11:13
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
is a variant with "message" parameter (which replaces the condition in the failure messagebox / output log).

E.g.:


	static const RichValueRep *RichValueRep::Cast(const Value::Void *p) {
		ASSERT_(dynamic_cast<const RichValueRep *>(p),
		        String().Cat() << "Invalid value conversion "
		                       << typeid(*p).name() << " -> " << typeid(T).name());
		return (const RichValueRep *) p;
	}


-> U++ will now tell you what is wrong with your Value conversions...

Mirek
Previous Topic: ProgessIndicator::SetColor
Next Topic: New widget MultiButton
Goto Forum:
  


Current Time: Fri Apr 19 10:43:38 CEST 2024

Total time taken to generate the page: 0.01965 seconds