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 » Community » U++ community news and announcements » theide: build_info.h, removal of bm* macros
theide: build_info.h, removal of bm* macros [message #44155] Sat, 10 January 2015 11:40
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Build system of theide was adding defines to compiler commandline bmYEAR, bmMONTH etc... so that application can now its compilation time and display it properly.

This was now found to be incompatible with attempts to introduce precompiled headers support (well, BLITZ is still superior for debug mode builds, but release mode builds will benefit).

So these macros are now removed and replaced by "build_info.h" builder generated file, which is on include path. In practice:

#include <Core/Core.h>

#include <build_info.h>

using namespace Upp;

CONSOLE_APP_MAIN
{
	StdLogSetup(LOG_COUT|LOG_FILE);

	DUMP(bmYEAR);
	DUMP(bmMONTH);
	DUMP(bmDAY);
	DUMP(bmHOUR);
	DUMP(bmMINUTE);
	DUMP(bmSECOND);
	DUMP(bmTIME);
	DUMP(bmMACHINE);
	DUMP(bmUSER);
}


Aside from being compatible with pch, another advantage is that information can be now more structured (as with bmTIME) and we can more easily add more info as needed.
Previous Topic: Win32 installation now installs 64-bit TheIDE on Win64
Next Topic: SSE2 flag removed
Goto Forum:
  


Current Time: Sat Apr 20 15:30:21 CEST 2024

Total time taken to generate the page: 0.01317 seconds