Nugget
version.h
1 /*-----------------------------------------------------------------------------
2  * version.h
3  *
4  * Copyright (c) Electronic Arts Inc. All rights reserved.
5  *---------------------------------------------------------------------------*/
6 
7 #ifndef INCLUDED_EABASE_VERSION_H
8 #define INCLUDED_EABASE_VERSION_H
9 
11 // EABASE_VERSION
12 //
13 // We more or less follow the conventional EA packaging approach to versioning
14 // here. A primary distinction here is that minor versions are defined as two
15 // digit entities (e.g. .03") instead of minimal digit entities ".3"). The logic
16 // here is that the value is a counter and not a floating point fraction.
17 // Note that the major version doesn't have leading zeros.
18 //
19 // Example version strings:
20 // "0.91.00" // Major version 0, minor version 91, patch version 0.
21 // "1.00.00" // Major version 1, minor and patch version 0.
22 // "3.10.02" // Major version 3, minor version 10, patch version 02.
23 // "12.03.01" // Major version 12, minor version 03, patch version
24 //
25 // Example usage:
26 // printf("EABASE version: %s", EABASE_VERSION);
27 // printf("EABASE version: %d.%d.%d", EABASE_VERSION_N / 10000 % 100, EABASE_VERSION_N / 100 % 100, EABASE_VERSION_N % 100);
28 //
30 
31 #ifndef EABASE_VERSION
32  #define EABASE_VERSION "2.09.12"
33  #define EABASE_VERSION_N 20912
34 #endif
35 
36 #endif