Skip to content

Instantly share code, notes, and snippets.

@digitalkaoz
Last active August 29, 2015 14:13
Show Gist options
  • Save digitalkaoz/dee32e5e82fc776925cf to your computer and use it in GitHub Desktop.
Save digitalkaoz/dee32e5e82fc776925cf to your computer and use it in GitHub Desktop.
travis hhvm version.h
#ifndef incl_HHVM_VERSION_H
#define incl_HHVM_VERSION_H
#include <boost/preprocessor/stringize.hpp>
#define HHVM_VERSION_MAJOR 3
#define HHVM_VERSION_MINOR 4
#define HHVM_VERSION_PATCH 0
#define HHVM_VERSION_SUFFIX ""
/* HHVM_VERSION_ID minus the patch number
* APIs should remain stable while this number is constant
*/
#define HHVM_VERSION_BRANCH ((HHVM_VERSION_MAJOR << 16) | \
(HHVM_VERSION_MINOR << 8))
/* Specific HHVM release */
#define HHVM_VERSION_ID (HHVM_VERSION_BRANCH | HHVM_VERSION_PATCH)
/* Human readable version string (e.g. "3.4.0") */
#define HHVM_VERSION \
(BOOST_PP_STRINGIZE(HHVM_VERSION_MAJOR) "." \
BOOST_PP_STRINGIZE(HHVM_VERSION_MINOR) "." \
BOOST_PP_STRINGIZE(HHVM_VERSION_PATCH) HHVM_VERSION_SUFFIX)
#endif // incl_HHVM_VERSION_H
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment