Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
UppHub
Status & Roadmap
FAQ
Authors & License
Forums
Funding U++
Search on this site











SourceForge.net Logo

SourceForge.net Logo

GitHub Logo

Discord Logo

build info

 

Demonstates the use of build_info, supplied by U++ builder

 

 

build_info.cpp

 

#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 bmGIT_REVCOUNT

    LOG("Git revcount " << bmGIT_REVCOUNT);

#endif

#ifdef bmGIT_HASH

    LOG("Git hash " << bmGIT_HASH);

#endif

#ifdef bmSVN_URL

    LOG("Svn url " << bmSVN_URL);

#endif

}

 

 

 

 

Do you want to contribute?