Home » U++ Library support » U++ Core » [PROPOSAL] U++ version macro
[PROPOSAL] U++ version macro [message #33137] |
Sun, 10 July 2011 17:43 |
|
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 ). 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
|
|
|
Goto Forum:
Current Time: Fri May 10 00:44:20 CEST 2024
Total time taken to generate the page: 0.03746 seconds
|