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 » build_info.h now contains svn revision/url info (if available)
build_info.h now contains svn revision/url info (if available) [message #44959] Fri, 31 July 2015 13:49 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
As demonstrated by new reference example:

#include <Core/Core.h>
#include <build_info.h>

using namespace Upp;

CONSOLE_APP_MAIN
{
	StdLogSetup(LOG_COUT|LOG_FILE);

#ifdef bmTIME
	LOG("Compiled " << bmTIME << ", " << (GetSysDate() - (Date)bmTIME) << " day(s) ago");
#endif
#ifdef bmUSER
	LOG("Compiled by user " << bmUSER);
#endif
#ifdef bmMACHINE
	LOG("Compiled on machine " << bmMACHINE);
#endif
#ifdef bmSVN_REVISION
	LOG("Svn revision " << bmSVN_REVISION);
#endif
#ifdef bmSVN_REVISION
	LOG("Svn url " << bmSVN_URL);
#endif
}
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: theide now displays misplaced spaces and tabs
Next Topic: VS2015 and C++ 11
Goto Forum:
  


Current Time: Sat Apr 20 00:26:14 CEST 2024

Total time taken to generate the page: 0.05610 seconds