HELP ME PLZ ON C++

08/30/2012 03:13 OrionShine#1
how can i define version of my project ?

#define __VER 1

#if __VER >=1
#define new_item_1 / version 1
#endif

#if __VER >=2
#define new_item_2 /version 2
#endif

#if __VER >=3
"define new_item_3 /versao 3
#endif

desire output :
if VER >= 1 // version 1
if VER >= 2 // version 1 + version 2
if VER >= 3 // version 1 +version 2 + version 3

HELP PLZ
08/30/2012 05:33 Zoeybird#2
Your Ver comes Versioncommon.h.
Mayby you will have __VER 100.
Then define it like this in your Versioncommon:
#define __VER 100.
Your Customs System in __VER must now under or exactly 100.
Example:
#if __VER >=( means Equal to or less) 99
text
#endif