noexcept.h 592 B

123456789101112131415161718
  1. #ifndef NOEXCEPT_H_768872DA_476C_11EA_88B8_90B11C0C0FF8
  2. #define NOEXCEPT_H_768872DA_476C_11EA_88B8_90B11C0C0FF8
  3. #if defined(_MSC_VER) || \
  4. (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \
  5. (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4
  6. #pragma once
  7. #endif
  8. // This is here for compatibility with older versions of Visual Studio
  9. // which don't support noexcept.
  10. #if defined(_MSC_VER) && _MSC_VER < 1900
  11. #define YAML_CPP_NOEXCEPT _NOEXCEPT
  12. #else
  13. #define YAML_CPP_NOEXCEPT noexcept
  14. #endif
  15. #endif