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 » [PROPOSAL] U++ version macro
[PROPOSAL] U++ version macro [message #33137] Sun, 10 July 2011 17:43 Go to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi!

Sometimes I want to have an access to information about what sources were used when compiling my application (e.g. to show it in About box Wink ). As of now, the only way to get this piece of information is to include ide/version.h and use IDE_VERSION macro. As you can see, that is not really intuitive and has some drawbacks, for example if you export project sources, the version.h won't be exported (unless you add ide package to your project, which is absurd overkill).

I propose to change the name of this version macro and also move it into Core package. Following solution should do it and maintains backward compatibility:

Add file Core/version.h:
#ifndef UPP_VERSION
  #define UPP_VERSION 3629
#endif
Change ide/version.h to:
#include<Core/version.h>
#ifndef IDE_VERSION
  #define IDE_VERSION UPP_VERSION
#endif

Finally, add #include "version.h" into Core/Core.h.

What do you think?

Best regards,
Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [bug]HasMouse() disappeared from CtrlCore.h
Next Topic: Add empty to STL_VECTOR_COMPATIBILITY
Goto Forum:
  


Current Time: Fri May 10 00:44:20 CEST 2024

Total time taken to generate the page: 0.03746 seconds