Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/Progmasoft/Runner/Yyjson.inl
blob: 2e33eaee15e4eef2c77ce3b155f856586ce2aca4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (c) 2026 Progmasoft.
// SPDX-License-Identifier: LGPL-3.0-or-later

// yyjson, compiled into Json.cpp and nowhere else. Every function of its API
// is static here, so the library adds no symbol to Catch3 and cannot collide
// with a copy of yyjson that the tests themselves link. It is vendored code:
// it is read as a system header, outside the warnings Catch3 builds with.
#if defined(__GNUC__) || defined(__clang__)
#    pragma GCC system_header
#endif
#if defined(_MSC_VER) && !defined(__clang__)
#    pragma warning(push, 0)
#endif

#define yyjson_api static
#include <yyjson.c>

#if defined(_MSC_VER) && !defined(__clang__)
#    pragma warning(pop)
#endif