macro_unscope.hpp 487 B

123456789101112131415161718192021
  1. #pragma once
  2. // restore GCC/clang diagnostic settings
  3. #if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__)
  4. #pragma GCC diagnostic pop
  5. #endif
  6. #if defined(__clang__)
  7. #pragma GCC diagnostic pop
  8. #endif
  9. // clean up
  10. #undef JSON_INTERNAL_CATCH
  11. #undef JSON_CATCH
  12. #undef JSON_THROW
  13. #undef JSON_TRY
  14. #undef JSON_HAS_CPP_14
  15. #undef JSON_HAS_CPP_17
  16. #undef NLOHMANN_BASIC_JSON_TPL_DECLARATION
  17. #undef NLOHMANN_BASIC_JSON_TPL
  18. #include <nlohmann/thirdparty/hedley/hedley_undef.hpp>