diff --git a/include/nlohmann/adl_serializer.hpp b/include/nlohmann/adl_serializer.hpp index f77f94473..128e2a450 100644 --- a/include/nlohmann/adl_serializer.hpp +++ b/include/nlohmann/adl_serializer.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_ADL_SERIALIZER_HPP +#define INCLUDE_NLOHMANN_ADL_SERIALIZER_HPP #include @@ -53,3 +54,5 @@ struct adl_serializer }; NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_ADL_SERIALIZER_HPP diff --git a/include/nlohmann/byte_container_with_subtype.hpp b/include/nlohmann/byte_container_with_subtype.hpp index 1031cdcfe..05b30d969 100644 --- a/include/nlohmann/byte_container_with_subtype.hpp +++ b/include/nlohmann/byte_container_with_subtype.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_BYTE_CONTAINER_WITH_SUBTYPE_HPP +#define INCLUDE_NLOHMANN_BYTE_CONTAINER_WITH_SUBTYPE_HPP #include // uint8_t, uint64_t #include // tie @@ -101,3 +102,5 @@ class byte_container_with_subtype : public BinaryType }; NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_BYTE_CONTAINER_WITH_SUBTYPE_HPP diff --git a/include/nlohmann/detail/abi_macros.hpp b/include/nlohmann/detail/abi_macros.hpp index 0d3108d16..5eb2fb6bf 100644 --- a/include/nlohmann/detail/abi_macros.hpp +++ b/include/nlohmann/detail/abi_macros.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_ABI_MACROS_HPP +#define INCLUDE_NLOHMANN_DETAIL_ABI_MACROS_HPP // This file contains all macro definitions affecting or depending on the ABI @@ -98,3 +99,5 @@ } /* namespace (inline namespace) NOLINT(readability/namespace) */ \ } // namespace nlohmann #endif + +#endif // INCLUDE_NLOHMANN_DETAIL_ABI_MACROS_HPP diff --git a/include/nlohmann/detail/conversions/from_json.hpp b/include/nlohmann/detail/conversions/from_json.hpp index c6299aa0b..f5708d202 100644 --- a/include/nlohmann/detail/conversions/from_json.hpp +++ b/include/nlohmann/detail/conversions/from_json.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_FROM_JSON_HPP +#define INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_FROM_JSON_HPP #include // transform #include // array @@ -495,3 +496,5 @@ JSON_INLINE_VARIABLE constexpr const auto& from_json = // NOLINT(misc-definition #endif NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_FROM_JSON_HPP diff --git a/include/nlohmann/detail/conversions/to_chars.hpp b/include/nlohmann/detail/conversions/to_chars.hpp index febef9327..5cd2a2b08 100644 --- a/include/nlohmann/detail/conversions/to_chars.hpp +++ b/include/nlohmann/detail/conversions/to_chars.hpp @@ -7,7 +7,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_TO_CHARS_HPP +#define INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_TO_CHARS_HPP #include // array #include // signbit, isfinite @@ -1116,3 +1117,5 @@ char* to_chars(char* first, const char* last, FloatType value) } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_TO_CHARS_HPP diff --git a/include/nlohmann/detail/conversions/to_json.hpp b/include/nlohmann/detail/conversions/to_json.hpp index e70207f7c..b3f9066f3 100644 --- a/include/nlohmann/detail/conversions/to_json.hpp +++ b/include/nlohmann/detail/conversions/to_json.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_TO_JSON_HPP +#define INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_TO_JSON_HPP #include // copy #include // begin, end @@ -444,3 +445,5 @@ JSON_INLINE_VARIABLE constexpr const auto& to_json = // NOLINT(misc-definitions- #endif NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_TO_JSON_HPP diff --git a/include/nlohmann/detail/exceptions.hpp b/include/nlohmann/detail/exceptions.hpp index 23b390c25..051552611 100644 --- a/include/nlohmann/detail/exceptions.hpp +++ b/include/nlohmann/detail/exceptions.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_EXCEPTIONS_HPP +#define INCLUDE_NLOHMANN_DETAIL_EXCEPTIONS_HPP #include // nullptr_t #include // exception @@ -256,3 +257,5 @@ class other_error : public exception } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_EXCEPTIONS_HPP diff --git a/include/nlohmann/detail/hash.hpp b/include/nlohmann/detail/hash.hpp index 3f05af830..baf39910e 100644 --- a/include/nlohmann/detail/hash.hpp +++ b/include/nlohmann/detail/hash.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_HASH_HPP +#define INCLUDE_NLOHMANN_DETAIL_HASH_HPP #include // uint8_t #include // size_t @@ -127,3 +128,5 @@ std::size_t hash(const BasicJsonType& j) } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_HASH_HPP diff --git a/include/nlohmann/detail/input/binary_reader.hpp b/include/nlohmann/detail/input/binary_reader.hpp index 832c36ddf..78732cf3c 100644 --- a/include/nlohmann/detail/input/binary_reader.hpp +++ b/include/nlohmann/detail/input/binary_reader.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_INPUT_BINARY_READER_HPP +#define INCLUDE_NLOHMANN_DETAIL_INPUT_BINARY_READER_HPP #include // generate_n #include // array @@ -3008,3 +3009,5 @@ class binary_reader } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_INPUT_BINARY_READER_HPP diff --git a/include/nlohmann/detail/input/input_adapters.hpp b/include/nlohmann/detail/input/input_adapters.hpp index cf53b1d57..ff0732ecc 100644 --- a/include/nlohmann/detail/input/input_adapters.hpp +++ b/include/nlohmann/detail/input/input_adapters.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_INPUT_INPUT_ADAPTERS_HPP +#define INCLUDE_NLOHMANN_DETAIL_INPUT_INPUT_ADAPTERS_HPP #include // array #include // size_t @@ -492,3 +493,5 @@ class span_input_adapter } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_INPUT_INPUT_ADAPTERS_HPP diff --git a/include/nlohmann/detail/input/json_sax.hpp b/include/nlohmann/detail/input/json_sax.hpp index 1bf46c232..fb3565b62 100644 --- a/include/nlohmann/detail/input/json_sax.hpp +++ b/include/nlohmann/detail/input/json_sax.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_INPUT_JSON_SAX_HPP +#define INCLUDE_NLOHMANN_DETAIL_INPUT_JSON_SAX_HPP #include #include // string @@ -726,3 +727,5 @@ class json_sax_acceptor } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_INPUT_JSON_SAX_HPP diff --git a/include/nlohmann/detail/input/lexer.hpp b/include/nlohmann/detail/input/lexer.hpp index 72e995108..82f197ae6 100644 --- a/include/nlohmann/detail/input/lexer.hpp +++ b/include/nlohmann/detail/input/lexer.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_INPUT_LEXER_HPP +#define INCLUDE_NLOHMANN_DETAIL_INPUT_LEXER_HPP #include // array #include // localeconv @@ -1630,3 +1631,5 @@ scan_number_done: } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_INPUT_LEXER_HPP diff --git a/include/nlohmann/detail/input/parser.hpp b/include/nlohmann/detail/input/parser.hpp index 8acbd4fca..32ed0f171 100644 --- a/include/nlohmann/detail/input/parser.hpp +++ b/include/nlohmann/detail/input/parser.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_INPUT_PARSER_HPP +#define INCLUDE_NLOHMANN_DETAIL_INPUT_PARSER_HPP #include // isfinite #include // uint8_t @@ -505,3 +506,5 @@ class parser } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_INPUT_PARSER_HPP diff --git a/include/nlohmann/detail/input/position_t.hpp b/include/nlohmann/detail/input/position_t.hpp index 396db0e16..b286318ec 100644 --- a/include/nlohmann/detail/input/position_t.hpp +++ b/include/nlohmann/detail/input/position_t.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_INPUT_POSITION_T_HPP +#define INCLUDE_NLOHMANN_DETAIL_INPUT_POSITION_T_HPP #include // size_t @@ -35,3 +36,5 @@ struct position_t } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_INPUT_POSITION_T_HPP diff --git a/include/nlohmann/detail/iterators/internal_iterator.hpp b/include/nlohmann/detail/iterators/internal_iterator.hpp index 13a212c8d..caba0ed69 100644 --- a/include/nlohmann/detail/iterators/internal_iterator.hpp +++ b/include/nlohmann/detail/iterators/internal_iterator.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_ITERATORS_INTERNAL_ITERATOR_HPP +#define INCLUDE_NLOHMANN_DETAIL_ITERATORS_INTERNAL_ITERATOR_HPP #include #include @@ -33,3 +34,5 @@ template struct internal_iterator } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_ITERATORS_INTERNAL_ITERATOR_HPP diff --git a/include/nlohmann/detail/iterators/iter_impl.hpp b/include/nlohmann/detail/iterators/iter_impl.hpp index 028de6e17..7ecf50c1a 100644 --- a/include/nlohmann/detail/iterators/iter_impl.hpp +++ b/include/nlohmann/detail/iterators/iter_impl.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITER_IMPL_HPP +#define INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITER_IMPL_HPP #include // iterator, random_access_iterator_tag, bidirectional_iterator_tag, advance, next #include // conditional, is_const, remove_const @@ -749,3 +750,5 @@ class iter_impl // NOLINT(cppcoreguidelines-special-member-functions,hicpp-speci } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITER_IMPL_HPP diff --git a/include/nlohmann/detail/iterators/iteration_proxy.hpp b/include/nlohmann/detail/iterators/iteration_proxy.hpp index 61b942000..0789244c3 100644 --- a/include/nlohmann/detail/iterators/iteration_proxy.hpp +++ b/include/nlohmann/detail/iterators/iteration_proxy.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITERATION_PROXY_HPP +#define INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITERATION_PROXY_HPP #include // size_t #include // input_iterator_tag @@ -240,3 +241,5 @@ class tuple_element> template inline constexpr bool ::std::ranges::enable_borrowed_range<::nlohmann::detail::iteration_proxy> = true; #endif + +#endif // INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITERATION_PROXY_HPP diff --git a/include/nlohmann/detail/iterators/iterator_traits.hpp b/include/nlohmann/detail/iterators/iterator_traits.hpp index 34a20eee8..8e18703bc 100644 --- a/include/nlohmann/detail/iterators/iterator_traits.hpp +++ b/include/nlohmann/detail/iterators/iterator_traits.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITERATOR_TRAITS_HPP +#define INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITERATOR_TRAITS_HPP #include // random_access_iterator_tag @@ -59,3 +60,5 @@ struct iterator_traits::value>> } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITERATOR_TRAITS_HPP diff --git a/include/nlohmann/detail/iterators/json_reverse_iterator.hpp b/include/nlohmann/detail/iterators/json_reverse_iterator.hpp index eb450e986..1026527d3 100644 --- a/include/nlohmann/detail/iterators/json_reverse_iterator.hpp +++ b/include/nlohmann/detail/iterators/json_reverse_iterator.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_ITERATORS_JSON_REVERSE_ITERATOR_HPP +#define INCLUDE_NLOHMANN_DETAIL_ITERATORS_JSON_REVERSE_ITERATOR_HPP #include // ptrdiff_t #include // reverse_iterator @@ -128,3 +129,5 @@ class json_reverse_iterator : public std::reverse_iterator } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_ITERATORS_JSON_REVERSE_ITERATOR_HPP diff --git a/include/nlohmann/detail/iterators/primitive_iterator.hpp b/include/nlohmann/detail/iterators/primitive_iterator.hpp index 0bc3ca804..a08ecf98d 100644 --- a/include/nlohmann/detail/iterators/primitive_iterator.hpp +++ b/include/nlohmann/detail/iterators/primitive_iterator.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_ITERATORS_PRIMITIVE_ITERATOR_HPP +#define INCLUDE_NLOHMANN_DETAIL_ITERATORS_PRIMITIVE_ITERATOR_HPP #include // ptrdiff_t #include // numeric_limits @@ -130,3 +131,5 @@ class primitive_iterator_t } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_ITERATORS_PRIMITIVE_ITERATOR_HPP diff --git a/include/nlohmann/detail/json_custom_base_class.hpp b/include/nlohmann/detail/json_custom_base_class.hpp index ff06653ab..cb62ad1c2 100644 --- a/include/nlohmann/detail/json_custom_base_class.hpp +++ b/include/nlohmann/detail/json_custom_base_class.hpp @@ -1,4 +1,5 @@ -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_JSON_CUSTOM_BASE_CLASS_HPP +#define INCLUDE_NLOHMANN_DETAIL_JSON_CUSTOM_BASE_CLASS_HPP #include // conditional, is_same @@ -29,3 +30,5 @@ using json_base_class = typename std::conditional < } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_JSON_CUSTOM_BASE_CLASS_HPP diff --git a/include/nlohmann/detail/json_pointer.hpp b/include/nlohmann/detail/json_pointer.hpp index eb712ed91..50b5aed9f 100644 --- a/include/nlohmann/detail/json_pointer.hpp +++ b/include/nlohmann/detail/json_pointer.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_JSON_POINTER_HPP +#define INCLUDE_NLOHMANN_DETAIL_JSON_POINTER_HPP #include // all_of #include // isdigit @@ -986,3 +987,5 @@ inline bool operator<(const json_pointer& lhs, #endif NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_JSON_POINTER_HPP diff --git a/include/nlohmann/detail/json_ref.hpp b/include/nlohmann/detail/json_ref.hpp index 47911fb55..9efc32d71 100644 --- a/include/nlohmann/detail/json_ref.hpp +++ b/include/nlohmann/detail/json_ref.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_JSON_REF_HPP +#define INCLUDE_NLOHMANN_DETAIL_JSON_REF_HPP #include #include @@ -76,3 +77,5 @@ class json_ref } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_JSON_REF_HPP diff --git a/include/nlohmann/detail/macro_scope.hpp b/include/nlohmann/detail/macro_scope.hpp index 2870a4f1d..dd247f398 100644 --- a/include/nlohmann/detail/macro_scope.hpp +++ b/include/nlohmann/detail/macro_scope.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_MACRO_SCOPE_HPP +#define INCLUDE_NLOHMANN_DETAIL_MACRO_SCOPE_HPP #include // declval, pair #include @@ -467,3 +468,5 @@ #ifndef JSON_USE_GLOBAL_UDLS #define JSON_USE_GLOBAL_UDLS 1 #endif + +#endif // INCLUDE_NLOHMANN_DETAIL_MACRO_SCOPE_HPP diff --git a/include/nlohmann/detail/macro_unscope.hpp b/include/nlohmann/detail/macro_unscope.hpp index 4a871f0c2..0ce297b19 100644 --- a/include/nlohmann/detail/macro_unscope.hpp +++ b/include/nlohmann/detail/macro_unscope.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_MACRO_UNSCOPE_HPP +#define INCLUDE_NLOHMANN_DETAIL_MACRO_UNSCOPE_HPP // restore clang diagnostic settings #if defined(__clang__) @@ -42,3 +43,5 @@ #endif #include + +#endif // INCLUDE_NLOHMANN_DETAIL_MACRO_UNSCOPE_HPP diff --git a/include/nlohmann/detail/meta/call_std/begin.hpp b/include/nlohmann/detail/meta/call_std/begin.hpp index 27d36c66a..863bf375d 100644 --- a/include/nlohmann/detail/meta/call_std/begin.hpp +++ b/include/nlohmann/detail/meta/call_std/begin.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_META_CALL_STD_BEGIN_HPP +#define INCLUDE_NLOHMANN_DETAIL_META_CALL_STD_BEGIN_HPP #include @@ -15,3 +16,5 @@ NLOHMANN_JSON_NAMESPACE_BEGIN NLOHMANN_CAN_CALL_STD_FUNC_IMPL(begin); NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_META_CALL_STD_BEGIN_HPP diff --git a/include/nlohmann/detail/meta/call_std/end.hpp b/include/nlohmann/detail/meta/call_std/end.hpp index d10bf8333..f3159e083 100644 --- a/include/nlohmann/detail/meta/call_std/end.hpp +++ b/include/nlohmann/detail/meta/call_std/end.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_META_CALL_STD_END_HPP +#define INCLUDE_NLOHMANN_DETAIL_META_CALL_STD_END_HPP #include @@ -15,3 +16,5 @@ NLOHMANN_JSON_NAMESPACE_BEGIN NLOHMANN_CAN_CALL_STD_FUNC_IMPL(end); NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_META_CALL_STD_END_HPP diff --git a/include/nlohmann/detail/meta/cpp_future.hpp b/include/nlohmann/detail/meta/cpp_future.hpp index 22f25140d..20f728340 100644 --- a/include/nlohmann/detail/meta/cpp_future.hpp +++ b/include/nlohmann/detail/meta/cpp_future.hpp @@ -7,7 +7,8 @@ // SPDX-FileCopyrightText: 2018 The Abseil Authors // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_META_CPP_FUTURE_HPP +#define INCLUDE_NLOHMANN_DETAIL_META_CPP_FUTURE_HPP #include // array #include // size_t @@ -169,3 +170,5 @@ inline constexpr std::array make_array(Args&& ... args) } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_META_CPP_FUTURE_HPP diff --git a/include/nlohmann/detail/meta/detected.hpp b/include/nlohmann/detail/meta/detected.hpp index b2f6db9fc..8edbdc6c2 100644 --- a/include/nlohmann/detail/meta/detected.hpp +++ b/include/nlohmann/detail/meta/detected.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_META_DETECTED_HPP +#define INCLUDE_NLOHMANN_DETAIL_META_DETECTED_HPP #include @@ -68,3 +69,5 @@ using is_detected_convertible = } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_META_DETECTED_HPP diff --git a/include/nlohmann/detail/meta/identity_tag.hpp b/include/nlohmann/detail/meta/identity_tag.hpp index 71164f281..079d9bbae 100644 --- a/include/nlohmann/detail/meta/identity_tag.hpp +++ b/include/nlohmann/detail/meta/identity_tag.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_META_IDENTITY_TAG_HPP +#define INCLUDE_NLOHMANN_DETAIL_META_IDENTITY_TAG_HPP #include @@ -19,3 +20,5 @@ template struct identity_tag {}; } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_META_IDENTITY_TAG_HPP diff --git a/include/nlohmann/detail/meta/is_sax.hpp b/include/nlohmann/detail/meta/is_sax.hpp index 215008963..0a7492d03 100644 --- a/include/nlohmann/detail/meta/is_sax.hpp +++ b/include/nlohmann/detail/meta/is_sax.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_META_IS_SAX_HPP +#define INCLUDE_NLOHMANN_DETAIL_META_IS_SAX_HPP #include // size_t #include // declval @@ -157,3 +158,5 @@ struct is_sax_static_asserts } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_META_IS_SAX_HPP diff --git a/include/nlohmann/detail/meta/std_fs.hpp b/include/nlohmann/detail/meta/std_fs.hpp index c0961580e..b15cf0d53 100644 --- a/include/nlohmann/detail/meta/std_fs.hpp +++ b/include/nlohmann/detail/meta/std_fs.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_META_STD_FS_HPP +#define INCLUDE_NLOHMANN_DETAIL_META_STD_FS_HPP #include @@ -27,3 +28,5 @@ namespace std_fs = std::filesystem; } // namespace detail NLOHMANN_JSON_NAMESPACE_END #endif + +#endif // INCLUDE_NLOHMANN_DETAIL_META_STD_FS_HPP diff --git a/include/nlohmann/detail/meta/type_traits.hpp b/include/nlohmann/detail/meta/type_traits.hpp index cfc7e5ad3..536787130 100644 --- a/include/nlohmann/detail/meta/type_traits.hpp +++ b/include/nlohmann/detail/meta/type_traits.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_META_TYPE_TRAITS_HPP +#define INCLUDE_NLOHMANN_DETAIL_META_TYPE_TRAITS_HPP #include // numeric_limits #include // false_type, is_constructible, is_integral, is_same, true_type @@ -738,3 +739,5 @@ struct is_transparent : bool_constant()> {}; } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_META_TYPE_TRAITS_HPP diff --git a/include/nlohmann/detail/meta/void_t.hpp b/include/nlohmann/detail/meta/void_t.hpp index 29154020d..eeb67c895 100644 --- a/include/nlohmann/detail/meta/void_t.hpp +++ b/include/nlohmann/detail/meta/void_t.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_META_VOID_T_HPP +#define INCLUDE_NLOHMANN_DETAIL_META_VOID_T_HPP #include @@ -22,3 +23,5 @@ template using void_t = typename make_void::type; } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_META_VOID_T_HPP diff --git a/include/nlohmann/detail/output/binary_writer.hpp b/include/nlohmann/detail/output/binary_writer.hpp index d3495a4bb..5e639ad37 100644 --- a/include/nlohmann/detail/output/binary_writer.hpp +++ b/include/nlohmann/detail/output/binary_writer.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_OUTPUT_BINARY_WRITER_HPP +#define INCLUDE_NLOHMANN_DETAIL_OUTPUT_BINARY_WRITER_HPP #include // reverse #include // array @@ -1836,3 +1837,5 @@ class binary_writer } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_OUTPUT_BINARY_WRITER_HPP diff --git a/include/nlohmann/detail/output/output_adapters.hpp b/include/nlohmann/detail/output/output_adapters.hpp index 630bd8f73..dac60c70a 100644 --- a/include/nlohmann/detail/output/output_adapters.hpp +++ b/include/nlohmann/detail/output/output_adapters.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_OUTPUT_OUTPUT_ADAPTERS_HPP +#define INCLUDE_NLOHMANN_DETAIL_OUTPUT_OUTPUT_ADAPTERS_HPP #include // copy #include // size_t @@ -145,3 +146,5 @@ class output_adapter } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_OUTPUT_OUTPUT_ADAPTERS_HPP diff --git a/include/nlohmann/detail/output/serializer.hpp b/include/nlohmann/detail/output/serializer.hpp index f17b89c63..611ad955b 100644 --- a/include/nlohmann/detail/output/serializer.hpp +++ b/include/nlohmann/detail/output/serializer.hpp @@ -7,7 +7,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_OUTPUT_SERIALIZER_HPP +#define INCLUDE_NLOHMANN_DETAIL_OUTPUT_SERIALIZER_HPP #include // reverse, remove, fill, find, none_of #include // array @@ -986,3 +987,5 @@ class serializer } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_OUTPUT_SERIALIZER_HPP diff --git a/include/nlohmann/detail/string_concat.hpp b/include/nlohmann/detail/string_concat.hpp index 972d86b79..1cce9d2c4 100644 --- a/include/nlohmann/detail/string_concat.hpp +++ b/include/nlohmann/detail/string_concat.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_STRING_CONCAT_HPP +#define INCLUDE_NLOHMANN_DETAIL_STRING_CONCAT_HPP #include // strlen #include // string @@ -144,3 +145,5 @@ inline OutStringType concat(Args && ... args) } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_STRING_CONCAT_HPP diff --git a/include/nlohmann/detail/string_escape.hpp b/include/nlohmann/detail/string_escape.hpp index f20461910..5654b00b4 100644 --- a/include/nlohmann/detail/string_escape.hpp +++ b/include/nlohmann/detail/string_escape.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_STRING_ESCAPE_HPP +#define INCLUDE_NLOHMANN_DETAIL_STRING_ESCAPE_HPP #include @@ -70,3 +71,5 @@ static void unescape(StringType& s) } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_STRING_ESCAPE_HPP diff --git a/include/nlohmann/detail/value_t.hpp b/include/nlohmann/detail/value_t.hpp index 0e79fd669..06ce45eca 100644 --- a/include/nlohmann/detail/value_t.hpp +++ b/include/nlohmann/detail/value_t.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_DETAIL_VALUE_T_HPP +#define INCLUDE_NLOHMANN_DETAIL_VALUE_T_HPP #include // array #include // size_t @@ -116,3 +117,5 @@ inline bool operator<(const value_t lhs, const value_t rhs) noexcept } // namespace detail NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_DETAIL_VALUE_T_HPP diff --git a/include/nlohmann/ordered_map.hpp b/include/nlohmann/ordered_map.hpp index 55c630d90..17c0d6c8c 100644 --- a/include/nlohmann/ordered_map.hpp +++ b/include/nlohmann/ordered_map.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_ORDERED_MAP_HPP +#define INCLUDE_NLOHMANN_ORDERED_MAP_HPP #include // equal_to, less #include // initializer_list @@ -357,3 +358,5 @@ private: }; NLOHMANN_JSON_NAMESPACE_END + +#endif // INCLUDE_NLOHMANN_ORDERED_MAP_HPP diff --git a/include/nlohmann/thirdparty/hedley/hedley.hpp b/include/nlohmann/thirdparty/hedley/hedley.hpp index f1377f1e4..ec175b7e0 100644 --- a/include/nlohmann/thirdparty/hedley/hedley.hpp +++ b/include/nlohmann/thirdparty/hedley/hedley.hpp @@ -1,4 +1,5 @@ -#pragma once +#ifndef INCLUDE_NLOHMANN_THIRDPARTY_HEDLEY_HEDLEY_HPP +#define INCLUDE_NLOHMANN_THIRDPARTY_HEDLEY_HEDLEY_HPP // __ _____ _____ _____ // __| | __| | | | JSON for Modern C++ @@ -2043,3 +2044,5 @@ JSON_HEDLEY_DIAGNOSTIC_POP #define JSON_HEDLEY_CLANG_HAS_WARNING(warning) JSON_HEDLEY_HAS_WARNING(warning) #endif /* !defined(JSON_HEDLEY_VERSION) || (JSON_HEDLEY_VERSION < X) */ + +#endif // INCLUDE_NLOHMANN_THIRDPARTY_HEDLEY_HEDLEY_HPP diff --git a/include/nlohmann/thirdparty/hedley/hedley_undef.hpp b/include/nlohmann/thirdparty/hedley/hedley_undef.hpp index d0c58ff84..6fc04d547 100644 --- a/include/nlohmann/thirdparty/hedley/hedley_undef.hpp +++ b/include/nlohmann/thirdparty/hedley/hedley_undef.hpp @@ -6,7 +6,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT -#pragma once +#ifndef INCLUDE_NLOHMANN_THIRDPARTY_HEDLEY_HEDLEY_UNDEF_HPP +#define INCLUDE_NLOHMANN_THIRDPARTY_HEDLEY_HEDLEY_UNDEF_HPP #undef JSON_HEDLEY_ALWAYS_INLINE #undef JSON_HEDLEY_ARM_VERSION @@ -156,3 +157,5 @@ #undef JSON_HEDLEY_WARN_UNUSED_RESULT #undef JSON_HEDLEY_WARN_UNUSED_RESULT_MSG #undef JSON_HEDLEY_FALL_THROUGH + +#endif // INCLUDE_NLOHMANN_THIRDPARTY_HEDLEY_HEDLEY_UNDEF_HPP diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index dbbe68458..450b6f59a 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -40,7 +40,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_ADL_SERIALIZER_HPP +#define INCLUDE_NLOHMANN_ADL_SERIALIZER_HPP #include @@ -53,7 +54,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_ABI_MACROS_HPP +#define INCLUDE_NLOHMANN_DETAIL_ABI_MACROS_HPP // This file contains all macro definitions affecting or depending on the ABI @@ -146,6 +148,8 @@ } // namespace nlohmann #endif +#endif // INCLUDE_NLOHMANN_DETAIL_ABI_MACROS_HPP + // #include // __ _____ _____ _____ // __| | __| | | | JSON for Modern C++ @@ -155,7 +159,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_FROM_JSON_HPP +#define INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_FROM_JSON_HPP #include // transform #include // array @@ -178,7 +183,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_EXCEPTIONS_HPP +#define INCLUDE_NLOHMANN_DETAIL_EXCEPTIONS_HPP #include // nullptr_t #include // exception @@ -198,7 +204,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_VALUE_T_HPP +#define INCLUDE_NLOHMANN_DETAIL_VALUE_T_HPP #include // array #include // size_t @@ -214,7 +221,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_MACRO_SCOPE_HPP +#define INCLUDE_NLOHMANN_DETAIL_MACRO_SCOPE_HPP #include // declval, pair // #include @@ -226,7 +234,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_META_DETECTED_HPP +#define INCLUDE_NLOHMANN_DETAIL_META_DETECTED_HPP #include @@ -239,7 +248,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_META_VOID_T_HPP +#define INCLUDE_NLOHMANN_DETAIL_META_VOID_T_HPP // #include @@ -257,6 +267,8 @@ template using void_t = typename make_void::type; } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_META_VOID_T_HPP + NLOHMANN_JSON_NAMESPACE_BEGIN namespace detail @@ -315,8 +327,11 @@ using is_detected_convertible = } // namespace detail NLOHMANN_JSON_NAMESPACE_END -// #include +#endif // INCLUDE_NLOHMANN_DETAIL_META_DETECTED_HPP +// #include +#ifndef INCLUDE_NLOHMANN_THIRDPARTY_HEDLEY_HEDLEY_HPP +#define INCLUDE_NLOHMANN_THIRDPARTY_HEDLEY_HEDLEY_HPP // __ _____ _____ _____ // __| | __| | | | JSON for Modern C++ @@ -2362,6 +2377,8 @@ JSON_HEDLEY_DIAGNOSTIC_POP #endif /* !defined(JSON_HEDLEY_VERSION) || (JSON_HEDLEY_VERSION < X) */ +#endif // INCLUDE_NLOHMANN_THIRDPARTY_HEDLEY_HEDLEY_HPP + // This file contains all internal macro definitions (except those affecting ABI) // You MUST include macro_unscope.hpp at the end of json.hpp to undef all of them @@ -2820,6 +2837,8 @@ JSON_HEDLEY_DIAGNOSTIC_POP #define JSON_USE_GLOBAL_UDLS 1 #endif +#endif // INCLUDE_NLOHMANN_DETAIL_MACRO_SCOPE_HPP + #if JSON_HAS_THREE_WAY_COMPARISON #include // partial_ordering #endif @@ -2923,6 +2942,8 @@ inline bool operator<(const value_t lhs, const value_t rhs) noexcept } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_VALUE_T_HPP + // #include // __ _____ _____ _____ // __| | __| | | | JSON for Modern C++ @@ -2932,7 +2953,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_STRING_ESCAPE_HPP +#define INCLUDE_NLOHMANN_DETAIL_STRING_ESCAPE_HPP // #include @@ -2998,6 +3020,8 @@ static void unescape(StringType& s) } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_STRING_ESCAPE_HPP + // #include // __ _____ _____ _____ // __| | __| | | | JSON for Modern C++ @@ -3007,7 +3031,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_INPUT_POSITION_T_HPP +#define INCLUDE_NLOHMANN_DETAIL_INPUT_POSITION_T_HPP #include // size_t @@ -3038,6 +3063,8 @@ struct position_t } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_INPUT_POSITION_T_HPP + // #include // #include @@ -3050,7 +3077,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2018 The Abseil Authors // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_META_CPP_FUTURE_HPP +#define INCLUDE_NLOHMANN_DETAIL_META_CPP_FUTURE_HPP #include // array #include // size_t @@ -3214,6 +3242,8 @@ inline constexpr std::array make_array(Args&& ... args) } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_META_CPP_FUTURE_HPP + // #include // __ _____ _____ _____ // __| | __| | | | JSON for Modern C++ @@ -3223,7 +3253,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_META_TYPE_TRAITS_HPP +#define INCLUDE_NLOHMANN_DETAIL_META_TYPE_TRAITS_HPP #include // numeric_limits #include // false_type, is_constructible, is_integral, is_same, true_type @@ -3239,7 +3270,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITERATOR_TRAITS_HPP +#define INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITERATOR_TRAITS_HPP #include // random_access_iterator_tag @@ -3296,6 +3328,8 @@ struct iterator_traits::value>> } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITERATOR_TRAITS_HPP + // #include // #include @@ -3307,16 +3341,19 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT +#ifndef INCLUDE_NLOHMANN_DETAIL_META_CALL_STD_BEGIN_HPP + #define INCLUDE_NLOHMANN_DETAIL_META_CALL_STD_BEGIN_HPP + + // #include -// #include + NLOHMANN_JSON_NAMESPACE_BEGIN + NLOHMANN_CAN_CALL_STD_FUNC_IMPL(begin); -NLOHMANN_JSON_NAMESPACE_BEGIN + NLOHMANN_JSON_NAMESPACE_END -NLOHMANN_CAN_CALL_STD_FUNC_IMPL(begin); - -NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_META_CALL_STD_BEGIN_HPP // #include // __ _____ _____ _____ @@ -3327,16 +3364,19 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT +#ifndef INCLUDE_NLOHMANN_DETAIL_META_CALL_STD_END_HPP + #define INCLUDE_NLOHMANN_DETAIL_META_CALL_STD_END_HPP + + // #include -// #include + NLOHMANN_JSON_NAMESPACE_BEGIN + NLOHMANN_CAN_CALL_STD_FUNC_IMPL(end); -NLOHMANN_JSON_NAMESPACE_BEGIN + NLOHMANN_JSON_NAMESPACE_END -NLOHMANN_CAN_CALL_STD_FUNC_IMPL(end); - -NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_META_CALL_STD_END_HPP // #include @@ -4139,6 +4179,8 @@ struct is_transparent : bool_constant()> {}; } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_META_TYPE_TRAITS_HPP + // #include // __ _____ _____ _____ // __| | __| | | | JSON for Modern C++ @@ -4148,7 +4190,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_STRING_CONCAT_HPP +#define INCLUDE_NLOHMANN_DETAIL_STRING_CONCAT_HPP #include // strlen #include // string @@ -4289,6 +4332,8 @@ inline OutStringType concat(Args && ... args) } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_STRING_CONCAT_HPP + NLOHMANN_JSON_NAMESPACE_BEGIN @@ -4522,6 +4567,8 @@ class other_error : public exception } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_EXCEPTIONS_HPP + // #include // #include @@ -4535,7 +4582,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_META_IDENTITY_TAG_HPP +#define INCLUDE_NLOHMANN_DETAIL_META_IDENTITY_TAG_HPP // #include @@ -4550,6 +4598,8 @@ template struct identity_tag {}; } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_META_IDENTITY_TAG_HPP + // #include // __ _____ _____ _____ // __| | __| | | | JSON for Modern C++ @@ -4559,7 +4609,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_META_STD_FS_HPP +#define INCLUDE_NLOHMANN_DETAIL_META_STD_FS_HPP // #include @@ -4582,6 +4633,8 @@ namespace std_fs = std::filesystem; NLOHMANN_JSON_NAMESPACE_END #endif +#endif // INCLUDE_NLOHMANN_DETAIL_META_STD_FS_HPP + // #include // #include @@ -5056,6 +5109,8 @@ JSON_INLINE_VARIABLE constexpr const auto& from_json = // NOLINT(misc-definition NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_FROM_JSON_HPP + // #include // __ _____ _____ _____ // __| | __| | | | JSON for Modern C++ @@ -5065,7 +5120,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_TO_JSON_HPP +#define INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_TO_JSON_HPP #include // copy #include // begin, end @@ -5085,7 +5141,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITERATION_PROXY_HPP +#define INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITERATION_PROXY_HPP #include // size_t #include // input_iterator_tag @@ -5323,6 +5380,8 @@ class tuple_element> inline constexpr bool ::std::ranges::enable_borrowed_range<::nlohmann::detail::iteration_proxy> = true; #endif +#endif // INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITERATION_PROXY_HPP + // #include // #include @@ -5755,6 +5814,8 @@ JSON_INLINE_VARIABLE constexpr const auto& to_json = // NOLINT(misc-definitions- NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_TO_JSON_HPP + // #include @@ -5797,6 +5858,8 @@ struct adl_serializer NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_ADL_SERIALIZER_HPP + // #include // __ _____ _____ _____ // __| | __| | | | JSON for Modern C++ @@ -5806,7 +5869,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_BYTE_CONTAINER_WITH_SUBTYPE_HPP +#define INCLUDE_NLOHMANN_BYTE_CONTAINER_WITH_SUBTYPE_HPP #include // uint8_t, uint64_t #include // tie @@ -5903,6 +5967,8 @@ class byte_container_with_subtype : public BinaryType NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_BYTE_CONTAINER_WITH_SUBTYPE_HPP + // #include // #include @@ -5918,7 +5984,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_HASH_HPP +#define INCLUDE_NLOHMANN_DETAIL_HASH_HPP #include // uint8_t #include // size_t @@ -6042,6 +6109,8 @@ std::size_t hash(const BasicJsonType& j) } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_HASH_HPP + // #include // __ _____ _____ _____ // __| | __| | | | JSON for Modern C++ @@ -6051,7 +6120,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_INPUT_BINARY_READER_HPP +#define INCLUDE_NLOHMANN_DETAIL_INPUT_BINARY_READER_HPP #include // generate_n #include // array @@ -6077,7 +6147,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_INPUT_INPUT_ADAPTERS_HPP +#define INCLUDE_NLOHMANN_DETAIL_INPUT_INPUT_ADAPTERS_HPP #include // array #include // size_t @@ -6566,6 +6637,8 @@ class span_input_adapter } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_INPUT_INPUT_ADAPTERS_HPP + // #include // __ _____ _____ _____ // __| | __| | | | JSON for Modern C++ @@ -6575,7 +6648,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_INPUT_JSON_SAX_HPP +#define INCLUDE_NLOHMANN_DETAIL_INPUT_JSON_SAX_HPP #include #include // string @@ -7299,6 +7373,8 @@ class json_sax_acceptor } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_INPUT_JSON_SAX_HPP + // #include // __ _____ _____ _____ // __| | __| | | | JSON for Modern C++ @@ -7308,7 +7384,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_INPUT_LEXER_HPP +#define INCLUDE_NLOHMANN_DETAIL_INPUT_LEXER_HPP #include // array #include // localeconv @@ -8936,6 +9013,8 @@ scan_number_done: } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_INPUT_LEXER_HPP + // #include // #include @@ -8947,7 +9026,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_META_IS_SAX_HPP +#define INCLUDE_NLOHMANN_DETAIL_META_IS_SAX_HPP #include // size_t #include // declval @@ -9102,6 +9182,8 @@ struct is_sax_static_asserts } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_META_IS_SAX_HPP + // #include // #include @@ -12087,6 +12169,8 @@ class binary_reader } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_INPUT_BINARY_READER_HPP + // #include // #include @@ -12100,7 +12184,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_INPUT_PARSER_HPP +#define INCLUDE_NLOHMANN_DETAIL_INPUT_PARSER_HPP #include // isfinite #include // uint8_t @@ -12608,6 +12693,8 @@ class parser } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_INPUT_PARSER_HPP + // #include // __ _____ _____ _____ // __| | __| | | | JSON for Modern C++ @@ -12617,7 +12704,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_ITERATORS_INTERNAL_ITERATOR_HPP +#define INCLUDE_NLOHMANN_DETAIL_ITERATORS_INTERNAL_ITERATOR_HPP // #include @@ -12630,7 +12718,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_ITERATORS_PRIMITIVE_ITERATOR_HPP +#define INCLUDE_NLOHMANN_DETAIL_ITERATORS_PRIMITIVE_ITERATOR_HPP #include // ptrdiff_t #include // numeric_limits @@ -12756,6 +12845,8 @@ class primitive_iterator_t } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_ITERATORS_PRIMITIVE_ITERATOR_HPP + NLOHMANN_JSON_NAMESPACE_BEGIN namespace detail @@ -12780,6 +12871,8 @@ template struct internal_iterator } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_ITERATORS_INTERNAL_ITERATOR_HPP + // #include // __ _____ _____ _____ // __| | __| | | | JSON for Modern C++ @@ -12789,7 +12882,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITER_IMPL_HPP +#define INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITER_IMPL_HPP #include // iterator, random_access_iterator_tag, bidirectional_iterator_tag, advance, next #include // conditional, is_const, remove_const @@ -13540,6 +13634,8 @@ class iter_impl // NOLINT(cppcoreguidelines-special-member-functions,hicpp-speci } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITER_IMPL_HPP + // #include // #include @@ -13551,7 +13647,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_ITERATORS_JSON_REVERSE_ITERATOR_HPP +#define INCLUDE_NLOHMANN_DETAIL_ITERATORS_JSON_REVERSE_ITERATOR_HPP #include // ptrdiff_t #include // reverse_iterator @@ -13675,10 +13772,13 @@ class json_reverse_iterator : public std::reverse_iterator } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_ITERATORS_JSON_REVERSE_ITERATOR_HPP + // #include // #include - +#ifndef INCLUDE_NLOHMANN_DETAIL_JSON_CUSTOM_BASE_CLASS_HPP +#define INCLUDE_NLOHMANN_DETAIL_JSON_CUSTOM_BASE_CLASS_HPP #include // conditional, is_same @@ -13711,6 +13811,8 @@ using json_base_class = typename std::conditional < } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_JSON_CUSTOM_BASE_CLASS_HPP + // #include // __ _____ _____ _____ // __| | __| | | | JSON for Modern C++ @@ -13720,7 +13822,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_JSON_POINTER_HPP +#define INCLUDE_NLOHMANN_DETAIL_JSON_POINTER_HPP #include // all_of #include // isdigit @@ -14706,6 +14809,8 @@ inline bool operator<(const json_pointer& lhs, NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_JSON_POINTER_HPP + // #include // __ _____ _____ _____ // __| | __| | | | JSON for Modern C++ @@ -14715,7 +14820,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_JSON_REF_HPP +#define INCLUDE_NLOHMANN_DETAIL_JSON_REF_HPP #include #include @@ -14788,6 +14894,8 @@ class json_ref } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_JSON_REF_HPP + // #include // #include @@ -14807,7 +14915,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_OUTPUT_BINARY_WRITER_HPP +#define INCLUDE_NLOHMANN_DETAIL_OUTPUT_BINARY_WRITER_HPP #include // reverse #include // array @@ -14833,7 +14942,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_OUTPUT_OUTPUT_ADAPTERS_HPP +#define INCLUDE_NLOHMANN_DETAIL_OUTPUT_OUTPUT_ADAPTERS_HPP #include // copy #include // size_t @@ -14974,6 +15084,8 @@ class output_adapter } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_OUTPUT_OUTPUT_ADAPTERS_HPP + // #include @@ -16790,6 +16902,8 @@ class binary_writer } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_OUTPUT_BINARY_WRITER_HPP + // #include // #include @@ -16802,7 +16916,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_OUTPUT_SERIALIZER_HPP +#define INCLUDE_NLOHMANN_DETAIL_OUTPUT_SERIALIZER_HPP #include // reverse, remove, fill, find, none_of #include // array @@ -16827,7 +16942,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_TO_CHARS_HPP +#define INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_TO_CHARS_HPP #include // array #include // signbit, isfinite @@ -17938,6 +18054,8 @@ char* to_chars(char* first, const char* last, FloatType value) } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_TO_CHARS_HPP + // #include // #include @@ -18909,6 +19027,8 @@ class serializer } // namespace detail NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_DETAIL_OUTPUT_SERIALIZER_HPP + // #include // #include @@ -18922,7 +19042,8 @@ NLOHMANN_JSON_NAMESPACE_END // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_ORDERED_MAP_HPP +#define INCLUDE_NLOHMANN_ORDERED_MAP_HPP #include // equal_to, less #include // initializer_list @@ -19276,6 +19397,8 @@ private: NLOHMANN_JSON_NAMESPACE_END +#endif // INCLUDE_NLOHMANN_ORDERED_MAP_HPP + #if defined(JSON_HAS_CPP_17) #include @@ -24474,201 +24597,207 @@ inline void swap(nlohmann::NLOHMANN_BASIC_JSON_TPL& j1, nlohmann::NLOHMANN_BASIC // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT +#ifndef INCLUDE_NLOHMANN_DETAIL_MACRO_UNSCOPE_HPP + #define INCLUDE_NLOHMANN_DETAIL_MACRO_UNSCOPE_HPP + + // restore clang diagnostic settings + #if defined(__clang__) + #pragma clang diagnostic pop + #endif + + // clean up + #undef JSON_ASSERT + #undef JSON_INTERNAL_CATCH + #undef JSON_THROW + #undef JSON_PRIVATE_UNLESS_TESTED + #undef NLOHMANN_BASIC_JSON_TPL_DECLARATION + #undef NLOHMANN_BASIC_JSON_TPL + #undef JSON_EXPLICIT + #undef NLOHMANN_CAN_CALL_STD_FUNC_IMPL + #undef JSON_INLINE_VARIABLE + #undef JSON_NO_UNIQUE_ADDRESS + #undef JSON_DISABLE_ENUM_SERIALIZATION + #undef JSON_USE_GLOBAL_UDLS + + #ifndef JSON_TEST_KEEP_MACROS + #undef JSON_CATCH + #undef JSON_TRY + #undef JSON_HAS_CPP_11 + #undef JSON_HAS_CPP_14 + #undef JSON_HAS_CPP_17 + #undef JSON_HAS_CPP_20 + #undef JSON_HAS_FILESYSTEM + #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM + #undef JSON_HAS_THREE_WAY_COMPARISON + #undef JSON_HAS_RANGES + #undef JSON_USE_LEGACY_DISCARDED_VALUE_COMPARISON + #endif + + // #include + // __ _____ _____ _____ + // __| | __| | | | JSON for Modern C++ + // | | |__ | | | | | | version 3.11.2 + // |_____|_____|_____|_|___| https://github.com/nlohmann/json + // + // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann + // SPDX-License-Identifier: MIT + + #ifndef INCLUDE_NLOHMANN_THIRDPARTY_HEDLEY_HEDLEY_UNDEF_HPP + #define INCLUDE_NLOHMANN_THIRDPARTY_HEDLEY_HEDLEY_UNDEF_HPP + + #undef JSON_HEDLEY_ALWAYS_INLINE + #undef JSON_HEDLEY_ARM_VERSION + #undef JSON_HEDLEY_ARM_VERSION_CHECK + #undef JSON_HEDLEY_ARRAY_PARAM + #undef JSON_HEDLEY_ASSUME + #undef JSON_HEDLEY_BEGIN_C_DECLS + #undef JSON_HEDLEY_CLANG_HAS_ATTRIBUTE + #undef JSON_HEDLEY_CLANG_HAS_BUILTIN + #undef JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE + #undef JSON_HEDLEY_CLANG_HAS_DECLSPEC_DECLSPEC_ATTRIBUTE + #undef JSON_HEDLEY_CLANG_HAS_EXTENSION + #undef JSON_HEDLEY_CLANG_HAS_FEATURE + #undef JSON_HEDLEY_CLANG_HAS_WARNING + #undef JSON_HEDLEY_COMPCERT_VERSION + #undef JSON_HEDLEY_COMPCERT_VERSION_CHECK + #undef JSON_HEDLEY_CONCAT + #undef JSON_HEDLEY_CONCAT3 + #undef JSON_HEDLEY_CONCAT3_EX + #undef JSON_HEDLEY_CONCAT_EX + #undef JSON_HEDLEY_CONST + #undef JSON_HEDLEY_CONSTEXPR + #undef JSON_HEDLEY_CONST_CAST + #undef JSON_HEDLEY_CPP_CAST + #undef JSON_HEDLEY_CRAY_VERSION + #undef JSON_HEDLEY_CRAY_VERSION_CHECK + #undef JSON_HEDLEY_C_DECL + #undef JSON_HEDLEY_DEPRECATED + #undef JSON_HEDLEY_DEPRECATED_FOR + #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL + #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_ + #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED + #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES + #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS + #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION + #undef JSON_HEDLEY_DIAGNOSTIC_POP + #undef JSON_HEDLEY_DIAGNOSTIC_PUSH + #undef JSON_HEDLEY_DMC_VERSION + #undef JSON_HEDLEY_DMC_VERSION_CHECK + #undef JSON_HEDLEY_EMPTY_BASES + #undef JSON_HEDLEY_EMSCRIPTEN_VERSION + #undef JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK + #undef JSON_HEDLEY_END_C_DECLS + #undef JSON_HEDLEY_FLAGS + #undef JSON_HEDLEY_FLAGS_CAST + #undef JSON_HEDLEY_GCC_HAS_ATTRIBUTE + #undef JSON_HEDLEY_GCC_HAS_BUILTIN + #undef JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE + #undef JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE + #undef JSON_HEDLEY_GCC_HAS_EXTENSION + #undef JSON_HEDLEY_GCC_HAS_FEATURE + #undef JSON_HEDLEY_GCC_HAS_WARNING + #undef JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK + #undef JSON_HEDLEY_GCC_VERSION + #undef JSON_HEDLEY_GCC_VERSION_CHECK + #undef JSON_HEDLEY_GNUC_HAS_ATTRIBUTE + #undef JSON_HEDLEY_GNUC_HAS_BUILTIN + #undef JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE + #undef JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE + #undef JSON_HEDLEY_GNUC_HAS_EXTENSION + #undef JSON_HEDLEY_GNUC_HAS_FEATURE + #undef JSON_HEDLEY_GNUC_HAS_WARNING + #undef JSON_HEDLEY_GNUC_VERSION + #undef JSON_HEDLEY_GNUC_VERSION_CHECK + #undef JSON_HEDLEY_HAS_ATTRIBUTE + #undef JSON_HEDLEY_HAS_BUILTIN + #undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE + #undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS + #undef JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE + #undef JSON_HEDLEY_HAS_EXTENSION + #undef JSON_HEDLEY_HAS_FEATURE + #undef JSON_HEDLEY_HAS_WARNING + #undef JSON_HEDLEY_IAR_VERSION + #undef JSON_HEDLEY_IAR_VERSION_CHECK + #undef JSON_HEDLEY_IBM_VERSION + #undef JSON_HEDLEY_IBM_VERSION_CHECK + #undef JSON_HEDLEY_IMPORT + #undef JSON_HEDLEY_INLINE + #undef JSON_HEDLEY_INTEL_CL_VERSION + #undef JSON_HEDLEY_INTEL_CL_VERSION_CHECK + #undef JSON_HEDLEY_INTEL_VERSION + #undef JSON_HEDLEY_INTEL_VERSION_CHECK + #undef JSON_HEDLEY_IS_CONSTANT + #undef JSON_HEDLEY_IS_CONSTEXPR_ + #undef JSON_HEDLEY_LIKELY + #undef JSON_HEDLEY_MALLOC + #undef JSON_HEDLEY_MCST_LCC_VERSION + #undef JSON_HEDLEY_MCST_LCC_VERSION_CHECK + #undef JSON_HEDLEY_MESSAGE + #undef JSON_HEDLEY_MSVC_VERSION + #undef JSON_HEDLEY_MSVC_VERSION_CHECK + #undef JSON_HEDLEY_NEVER_INLINE + #undef JSON_HEDLEY_NON_NULL + #undef JSON_HEDLEY_NO_ESCAPE + #undef JSON_HEDLEY_NO_RETURN + #undef JSON_HEDLEY_NO_THROW + #undef JSON_HEDLEY_NULL + #undef JSON_HEDLEY_PELLES_VERSION + #undef JSON_HEDLEY_PELLES_VERSION_CHECK + #undef JSON_HEDLEY_PGI_VERSION + #undef JSON_HEDLEY_PGI_VERSION_CHECK + #undef JSON_HEDLEY_PREDICT + #undef JSON_HEDLEY_PRINTF_FORMAT + #undef JSON_HEDLEY_PRIVATE + #undef JSON_HEDLEY_PUBLIC + #undef JSON_HEDLEY_PURE + #undef JSON_HEDLEY_REINTERPRET_CAST + #undef JSON_HEDLEY_REQUIRE + #undef JSON_HEDLEY_REQUIRE_CONSTEXPR + #undef JSON_HEDLEY_REQUIRE_MSG + #undef JSON_HEDLEY_RESTRICT + #undef JSON_HEDLEY_RETURNS_NON_NULL + #undef JSON_HEDLEY_SENTINEL + #undef JSON_HEDLEY_STATIC_ASSERT + #undef JSON_HEDLEY_STATIC_CAST + #undef JSON_HEDLEY_STRINGIFY + #undef JSON_HEDLEY_STRINGIFY_EX + #undef JSON_HEDLEY_SUNPRO_VERSION + #undef JSON_HEDLEY_SUNPRO_VERSION_CHECK + #undef JSON_HEDLEY_TINYC_VERSION + #undef JSON_HEDLEY_TINYC_VERSION_CHECK + #undef JSON_HEDLEY_TI_ARMCL_VERSION + #undef JSON_HEDLEY_TI_ARMCL_VERSION_CHECK + #undef JSON_HEDLEY_TI_CL2000_VERSION + #undef JSON_HEDLEY_TI_CL2000_VERSION_CHECK + #undef JSON_HEDLEY_TI_CL430_VERSION + #undef JSON_HEDLEY_TI_CL430_VERSION_CHECK + #undef JSON_HEDLEY_TI_CL6X_VERSION + #undef JSON_HEDLEY_TI_CL6X_VERSION_CHECK + #undef JSON_HEDLEY_TI_CL7X_VERSION + #undef JSON_HEDLEY_TI_CL7X_VERSION_CHECK + #undef JSON_HEDLEY_TI_CLPRU_VERSION + #undef JSON_HEDLEY_TI_CLPRU_VERSION_CHECK + #undef JSON_HEDLEY_TI_VERSION + #undef JSON_HEDLEY_TI_VERSION_CHECK + #undef JSON_HEDLEY_UNAVAILABLE + #undef JSON_HEDLEY_UNLIKELY + #undef JSON_HEDLEY_UNPREDICTABLE + #undef JSON_HEDLEY_UNREACHABLE + #undef JSON_HEDLEY_UNREACHABLE_RETURN + #undef JSON_HEDLEY_VERSION + #undef JSON_HEDLEY_VERSION_DECODE_MAJOR + #undef JSON_HEDLEY_VERSION_DECODE_MINOR + #undef JSON_HEDLEY_VERSION_DECODE_REVISION + #undef JSON_HEDLEY_VERSION_ENCODE + #undef JSON_HEDLEY_WARNING + #undef JSON_HEDLEY_WARN_UNUSED_RESULT + #undef JSON_HEDLEY_WARN_UNUSED_RESULT_MSG + #undef JSON_HEDLEY_FALL_THROUGH + + #endif // INCLUDE_NLOHMANN_THIRDPARTY_HEDLEY_HEDLEY_UNDEF_HPP -// restore clang diagnostic settings -#if defined(__clang__) - #pragma clang diagnostic pop -#endif - -// clean up -#undef JSON_ASSERT -#undef JSON_INTERNAL_CATCH -#undef JSON_THROW -#undef JSON_PRIVATE_UNLESS_TESTED -#undef NLOHMANN_BASIC_JSON_TPL_DECLARATION -#undef NLOHMANN_BASIC_JSON_TPL -#undef JSON_EXPLICIT -#undef NLOHMANN_CAN_CALL_STD_FUNC_IMPL -#undef JSON_INLINE_VARIABLE -#undef JSON_NO_UNIQUE_ADDRESS -#undef JSON_DISABLE_ENUM_SERIALIZATION -#undef JSON_USE_GLOBAL_UDLS - -#ifndef JSON_TEST_KEEP_MACROS - #undef JSON_CATCH - #undef JSON_TRY - #undef JSON_HAS_CPP_11 - #undef JSON_HAS_CPP_14 - #undef JSON_HAS_CPP_17 - #undef JSON_HAS_CPP_20 - #undef JSON_HAS_FILESYSTEM - #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM - #undef JSON_HAS_THREE_WAY_COMPARISON - #undef JSON_HAS_RANGES - #undef JSON_USE_LEGACY_DISCARDED_VALUE_COMPARISON -#endif - -// #include -// __ _____ _____ _____ -// __| | __| | | | JSON for Modern C++ -// | | |__ | | | | | | version 3.11.2 -// |_____|_____|_____|_|___| https://github.com/nlohmann/json -// -// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann -// SPDX-License-Identifier: MIT - - - -#undef JSON_HEDLEY_ALWAYS_INLINE -#undef JSON_HEDLEY_ARM_VERSION -#undef JSON_HEDLEY_ARM_VERSION_CHECK -#undef JSON_HEDLEY_ARRAY_PARAM -#undef JSON_HEDLEY_ASSUME -#undef JSON_HEDLEY_BEGIN_C_DECLS -#undef JSON_HEDLEY_CLANG_HAS_ATTRIBUTE -#undef JSON_HEDLEY_CLANG_HAS_BUILTIN -#undef JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE -#undef JSON_HEDLEY_CLANG_HAS_DECLSPEC_DECLSPEC_ATTRIBUTE -#undef JSON_HEDLEY_CLANG_HAS_EXTENSION -#undef JSON_HEDLEY_CLANG_HAS_FEATURE -#undef JSON_HEDLEY_CLANG_HAS_WARNING -#undef JSON_HEDLEY_COMPCERT_VERSION -#undef JSON_HEDLEY_COMPCERT_VERSION_CHECK -#undef JSON_HEDLEY_CONCAT -#undef JSON_HEDLEY_CONCAT3 -#undef JSON_HEDLEY_CONCAT3_EX -#undef JSON_HEDLEY_CONCAT_EX -#undef JSON_HEDLEY_CONST -#undef JSON_HEDLEY_CONSTEXPR -#undef JSON_HEDLEY_CONST_CAST -#undef JSON_HEDLEY_CPP_CAST -#undef JSON_HEDLEY_CRAY_VERSION -#undef JSON_HEDLEY_CRAY_VERSION_CHECK -#undef JSON_HEDLEY_C_DECL -#undef JSON_HEDLEY_DEPRECATED -#undef JSON_HEDLEY_DEPRECATED_FOR -#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL -#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_ -#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED -#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES -#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS -#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION -#undef JSON_HEDLEY_DIAGNOSTIC_POP -#undef JSON_HEDLEY_DIAGNOSTIC_PUSH -#undef JSON_HEDLEY_DMC_VERSION -#undef JSON_HEDLEY_DMC_VERSION_CHECK -#undef JSON_HEDLEY_EMPTY_BASES -#undef JSON_HEDLEY_EMSCRIPTEN_VERSION -#undef JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK -#undef JSON_HEDLEY_END_C_DECLS -#undef JSON_HEDLEY_FLAGS -#undef JSON_HEDLEY_FLAGS_CAST -#undef JSON_HEDLEY_GCC_HAS_ATTRIBUTE -#undef JSON_HEDLEY_GCC_HAS_BUILTIN -#undef JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE -#undef JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE -#undef JSON_HEDLEY_GCC_HAS_EXTENSION -#undef JSON_HEDLEY_GCC_HAS_FEATURE -#undef JSON_HEDLEY_GCC_HAS_WARNING -#undef JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK -#undef JSON_HEDLEY_GCC_VERSION -#undef JSON_HEDLEY_GCC_VERSION_CHECK -#undef JSON_HEDLEY_GNUC_HAS_ATTRIBUTE -#undef JSON_HEDLEY_GNUC_HAS_BUILTIN -#undef JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE -#undef JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE -#undef JSON_HEDLEY_GNUC_HAS_EXTENSION -#undef JSON_HEDLEY_GNUC_HAS_FEATURE -#undef JSON_HEDLEY_GNUC_HAS_WARNING -#undef JSON_HEDLEY_GNUC_VERSION -#undef JSON_HEDLEY_GNUC_VERSION_CHECK -#undef JSON_HEDLEY_HAS_ATTRIBUTE -#undef JSON_HEDLEY_HAS_BUILTIN -#undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE -#undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS -#undef JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE -#undef JSON_HEDLEY_HAS_EXTENSION -#undef JSON_HEDLEY_HAS_FEATURE -#undef JSON_HEDLEY_HAS_WARNING -#undef JSON_HEDLEY_IAR_VERSION -#undef JSON_HEDLEY_IAR_VERSION_CHECK -#undef JSON_HEDLEY_IBM_VERSION -#undef JSON_HEDLEY_IBM_VERSION_CHECK -#undef JSON_HEDLEY_IMPORT -#undef JSON_HEDLEY_INLINE -#undef JSON_HEDLEY_INTEL_CL_VERSION -#undef JSON_HEDLEY_INTEL_CL_VERSION_CHECK -#undef JSON_HEDLEY_INTEL_VERSION -#undef JSON_HEDLEY_INTEL_VERSION_CHECK -#undef JSON_HEDLEY_IS_CONSTANT -#undef JSON_HEDLEY_IS_CONSTEXPR_ -#undef JSON_HEDLEY_LIKELY -#undef JSON_HEDLEY_MALLOC -#undef JSON_HEDLEY_MCST_LCC_VERSION -#undef JSON_HEDLEY_MCST_LCC_VERSION_CHECK -#undef JSON_HEDLEY_MESSAGE -#undef JSON_HEDLEY_MSVC_VERSION -#undef JSON_HEDLEY_MSVC_VERSION_CHECK -#undef JSON_HEDLEY_NEVER_INLINE -#undef JSON_HEDLEY_NON_NULL -#undef JSON_HEDLEY_NO_ESCAPE -#undef JSON_HEDLEY_NO_RETURN -#undef JSON_HEDLEY_NO_THROW -#undef JSON_HEDLEY_NULL -#undef JSON_HEDLEY_PELLES_VERSION -#undef JSON_HEDLEY_PELLES_VERSION_CHECK -#undef JSON_HEDLEY_PGI_VERSION -#undef JSON_HEDLEY_PGI_VERSION_CHECK -#undef JSON_HEDLEY_PREDICT -#undef JSON_HEDLEY_PRINTF_FORMAT -#undef JSON_HEDLEY_PRIVATE -#undef JSON_HEDLEY_PUBLIC -#undef JSON_HEDLEY_PURE -#undef JSON_HEDLEY_REINTERPRET_CAST -#undef JSON_HEDLEY_REQUIRE -#undef JSON_HEDLEY_REQUIRE_CONSTEXPR -#undef JSON_HEDLEY_REQUIRE_MSG -#undef JSON_HEDLEY_RESTRICT -#undef JSON_HEDLEY_RETURNS_NON_NULL -#undef JSON_HEDLEY_SENTINEL -#undef JSON_HEDLEY_STATIC_ASSERT -#undef JSON_HEDLEY_STATIC_CAST -#undef JSON_HEDLEY_STRINGIFY -#undef JSON_HEDLEY_STRINGIFY_EX -#undef JSON_HEDLEY_SUNPRO_VERSION -#undef JSON_HEDLEY_SUNPRO_VERSION_CHECK -#undef JSON_HEDLEY_TINYC_VERSION -#undef JSON_HEDLEY_TINYC_VERSION_CHECK -#undef JSON_HEDLEY_TI_ARMCL_VERSION -#undef JSON_HEDLEY_TI_ARMCL_VERSION_CHECK -#undef JSON_HEDLEY_TI_CL2000_VERSION -#undef JSON_HEDLEY_TI_CL2000_VERSION_CHECK -#undef JSON_HEDLEY_TI_CL430_VERSION -#undef JSON_HEDLEY_TI_CL430_VERSION_CHECK -#undef JSON_HEDLEY_TI_CL6X_VERSION -#undef JSON_HEDLEY_TI_CL6X_VERSION_CHECK -#undef JSON_HEDLEY_TI_CL7X_VERSION -#undef JSON_HEDLEY_TI_CL7X_VERSION_CHECK -#undef JSON_HEDLEY_TI_CLPRU_VERSION -#undef JSON_HEDLEY_TI_CLPRU_VERSION_CHECK -#undef JSON_HEDLEY_TI_VERSION -#undef JSON_HEDLEY_TI_VERSION_CHECK -#undef JSON_HEDLEY_UNAVAILABLE -#undef JSON_HEDLEY_UNLIKELY -#undef JSON_HEDLEY_UNPREDICTABLE -#undef JSON_HEDLEY_UNREACHABLE -#undef JSON_HEDLEY_UNREACHABLE_RETURN -#undef JSON_HEDLEY_VERSION -#undef JSON_HEDLEY_VERSION_DECODE_MAJOR -#undef JSON_HEDLEY_VERSION_DECODE_MINOR -#undef JSON_HEDLEY_VERSION_DECODE_REVISION -#undef JSON_HEDLEY_VERSION_ENCODE -#undef JSON_HEDLEY_WARNING -#undef JSON_HEDLEY_WARN_UNUSED_RESULT -#undef JSON_HEDLEY_WARN_UNUSED_RESULT_MSG -#undef JSON_HEDLEY_FALL_THROUGH - +#endif // INCLUDE_NLOHMANN_DETAIL_MACRO_UNSCOPE_HPP #endif // INCLUDE_NLOHMANN_JSON_HPP_ diff --git a/single_include/nlohmann/json_fwd.hpp b/single_include/nlohmann/json_fwd.hpp index 98070dfc9..7f1a02432 100644 --- a/single_include/nlohmann/json_fwd.hpp +++ b/single_include/nlohmann/json_fwd.hpp @@ -24,7 +24,8 @@ // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann // SPDX-License-Identifier: MIT - +#ifndef INCLUDE_NLOHMANN_DETAIL_ABI_MACROS_HPP +#define INCLUDE_NLOHMANN_DETAIL_ABI_MACROS_HPP // This file contains all macro definitions affecting or depending on the ABI @@ -117,6 +118,8 @@ } // namespace nlohmann #endif +#endif // INCLUDE_NLOHMANN_DETAIL_ABI_MACROS_HPP + /*! @brief namespace for Niels Lohmann