// -*- C++ -*- // // This file is part of LHAPDF // Copyright (C) 2012-2016 The LHAPDF collaboration (see AUTHORS for details) // #pragma once #ifndef LHAPDF_Version_H #define LHAPDF_Version_H #include /* "LHAPDF version string" */ #undef LHAPDF_VERSION /* "LHAPDF version as an int" */ #undef LHAPDF_VERSION_CODE /* "Whether PDFLIB Fortran compatibility is available" */ #undef LHAPDF_PDFLIB /* "Whether LHAPDF5 C++ compatibility is available" */ #undef LHAPDF_LHA5CXX // Separate int-valued macro for conditional compilation. Doesn't exist in LHAPDF5. // Use like "#if defined LHAPDF_MAJOR_VERSION && LHAPDF_MAJOR_VERSION == 6 ..." #define LHAPDF_MAJOR_VERSION 6 namespace LHAPDF { /// Get the LHAPDF library version code (as a string) inline std::string version() { return LHAPDF_VERSION; } } #endif