v4k-git-backup/tools/rh/samples/sample1.inc

27 lines
988 B
PHP
Raw Normal View History

2023-10-13 15:13:45 +00:00
//sample1.inc next INCLUDEs sample1.h - demonstrating nested includes :)
#INCLUDE sample1.h
#define IDS_APP_TITLE "Sample Application"
#define IDS_APP_NAME "SampleApp"
#define IDS_APP_AUTHOR "Angus Johnson"
#define RELEASE
#if defined(RELEASE)
#define MAJOR_VERSION 1
#define MINOR_VERSION 2
#define RELEASE_NUMBER 3
//and just showing what's possible ...
#define BUILD_NUMBER (40*(5+5)+56)
#else
#define MAJOR_VERSION 0
#define MINOR_VERSION 0
#define RELEASE_NUMBER 0
#define BUILD_NUMBER 0
#endif
//1. concatenating numbers with strings will produce a string variable
//2. to convert a number to a string variable, just concatenate it with an empty string
//3. the compiler will only accept integers (decimal, hex or octal) as numeric values.
#define IDS_DOTTED_VER_NO MAJOR_VERSION + "." + MINOR_VERSION + "." + RELEASE_NUMBER + "." + BUILD_NUMBER