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 » BETA status handling
Re: BETA status handling [message #52478 is a reply to message #52466] Sun, 06 October 2019 13:56 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3361
Registered: August 2008
Senior Veteran
Thank you Mirek. However that is not exactly the same.

InstallPanicMessageBox() and SetAssertFailedHook() let to install panic handlers.

However, in case of the ASSERTs, this only works in DEBUG mode. Please check this code in Defs.h:

#ifdef _DEBUG
	#define ASSERT_(x, msg)  ((x) ? (void)0 : ::Upp	::AssertFailed(__FILE__, __LINE__, msg))
	#define ASSERT(x)        ASSERT_(x, #x)
#else
	inline  void LOGNOP__() {}
	#define LOG_NOP          Upp::LOGNOP__()
	#define ASSERT_(x, msg)  LOG_NOP
	#define ASSERT(x)        LOG_NOP
#endif
Out of DEBUG, ASSERTs seem to do nothing, as are disconnected to AssertFailed().


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: C2280 with Vector
Next Topic: Doubt about container
Goto Forum:
  


Current Time: Wed May 08 20:06:56 CEST 2024

Total time taken to generate the page: 0.02091 seconds