macro_unscope.hpp 499 B

12345678910111213141516171819202122
  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_CATCH
  11. #undef JSON_THROW
  12. #undef JSON_TRY
  13. #undef JSON_LIKELY
  14. #undef JSON_UNLIKELY
  15. #undef JSON_DEPRECATED
  16. #undef JSON_HAS_CPP_14
  17. #undef JSON_HAS_CPP_17
  18. #undef NLOHMANN_BASIC_JSON_TPL_DECLARATION
  19. #undef NLOHMANN_BASIC_JSON_TPL
  20. #undef NLOHMANN_JSON_HAS_HELPER