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

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: 14290
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: Sun Apr 26 01:40:54 GMT+2 2026

Total time taken to generate the page: 0.01130 seconds