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

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: 14290
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 May 02 01:40:38 GMT+2 2026

Total time taken to generate the page: 0.01053 seconds