version.hpp 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*! \file version.hpp
  2. \brief Macros to detect cereal version
  3. These macros can assist in determining the version of cereal. Be
  4. warned that cereal is not guaranteed to be compatible across
  5. different versions. For more information on releases of cereal,
  6. see https://github.com/USCiLab/cereal/releases.
  7. \ingroup utility */
  8. /*
  9. Copyright (c) 2018, Shane Grant
  10. All rights reserved.
  11. Redistribution and use in source and binary forms, with or without
  12. modification, are permitted provided that the following conditions are met:
  13. * Redistributions of source code must retain the above copyright
  14. notice, this list of conditions and the following disclaimer.
  15. * Redistributions in binary form must reproduce the above copyright
  16. notice, this list of conditions and the following disclaimer in the
  17. documentation and/or other materials provided with the distribution.
  18. * Neither the name of the copyright holder nor the
  19. names of its contributors may be used to endorse or promote products
  20. derived from this software without specific prior written permission.
  21. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  22. ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  23. WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  24. DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
  25. DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  26. (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  27. LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  28. ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  29. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  30. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31. */
  32. #ifndef CEREAL_VERSION_HPP_
  33. #define CEREAL_VERSION_HPP_
  34. //! The major version
  35. #define CEREAL_VERSION_MAJOR 1
  36. //! The minor version
  37. #define CEREAL_VERSION_MINOR 3
  38. //! The patch version
  39. #define CEREAL_VERSION_PATCH 2
  40. //! The full version as a single number
  41. #define CEREAL_VERSION (CEREAL_VERSION_MAJOR * 10000 \
  42. + CEREAL_VERSION_MINOR * 100 \
  43. + CEREAL_VERSION_PATCH)
  44. #endif // CEREAL_VERSION_HPP_