Debian Codegraph @

src/mpt/detect/nlohmann_json.hpp

raw
1 /* SPDX-License-Identifier: BSL-1.0 OR BSD-3-Clause */
2
3 #ifndef MPT_DETECT_NLOHMANN_JSON_HPP
4 #define MPT_DETECT_NLOHMANN_JSON_HPP
5
6 #if defined(MPT_WITH_NLOHMANN_JSON)
7 #if !defined(CPPCHECK)
8 #if !__has_include(<nlohmann/json.hpp>)
9 #error "MPT_WITH_NLOHMANN_JSON defined but <nlohmann/json.hpp> not found."
10 #endif
11 #endif
12 #define MPT_DETECTED_NLOHMANN_JSON 1
13 #else
14 #if defined(CPPCHECK)
15 #define MPT_DETECTED_NLOHMANN_JSON 1
16 #else
17 #if __has_include(<nlohmann/json.hpp>)
18 #define MPT_DETECTED_NLOHMANN_JSON 1
19 #else
20 #define MPT_DETECTED_NLOHMANN_JSON 0
21 #endif
22 #endif
23 #endif
24
25 #endif // MPT_DETECT_NLOHMANN_JSON_HPP