Fix ResolveClsMethod bug
[hiphop-php.git] / hphp / runtime / version.h
blob75988ef8de17eaed3c8f9e01aebd7e9d8d34b490
1 #ifndef incl_HHVM_VERSION_H
2 #define incl_HHVM_VERSION_H
4 // This file needs to be valid C, not just C++
6 /* cmake -DHHVM_VERSION_OVERRIDE=3.12.0-dev .
7 * Allows packaging scripts to update the reported
8 * version without amending a commit to change this file
10 * See: CMake/HHVMVersion.cmake
12 #ifndef HHVM_VERSION_OVERRIDE
13 # define HHVM_VERSION_MAJOR 4
14 # define HHVM_VERSION_MINOR 1
15 # define HHVM_VERSION_PATCH 0
16 # define HHVM_VERSION_SUFFIX "-dev"
17 #endif
19 /* HHVM_VERSION_ID minus the patch number
20 * APIs should remain stable while this number is constant
22 #define HHVM_VERSION_BRANCH ((HHVM_VERSION_MAJOR << 16) | \
23 (HHVM_VERSION_MINOR << 8))
25 /* Specific HHVM release */
26 #define HHVM_VERSION_ID (HHVM_VERSION_BRANCH | HHVM_VERSION_PATCH)
28 #define HHVM_VERSION_STRINGIFY_HELPER(x) #x
29 #define HHVM_VERSION_STRINGIFY(x) HHVM_VERSION_STRINGIFY_HELPER(x)
31 /* Human readable version string (e.g. "3.5.0-dev") */
32 #define HHVM_VERSION_C_STRING_LITERALS \
33 HHVM_VERSION_STRINGIFY(HHVM_VERSION_MAJOR) "." \
34 HHVM_VERSION_STRINGIFY(HHVM_VERSION_MINOR) "." \
35 HHVM_VERSION_STRINGIFY(HHVM_VERSION_PATCH) HHVM_VERSION_SUFFIX
36 #define HHVM_VERSION (HHVM_VERSION_C_STRING_LITERALS)
38 #endif // incl_HHVM_VERSION_H