1// Copyright (C) 2018 Intel Corporation.
2// Copyright (C) 2019 The Qt Company Ltd.
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5#ifndef QCBORCOMMON_P_H
6#define QCBORCOMMON_P_H
7
8#include "qcborcommon.h"
9#include "private/qglobal_p.h"
10
11//
12// W A R N I N G
13// -------------
14//
15// This file is not part of the Qt API. It exists purely as an
16// implementation detail. This header file may change from version to
17// version without notice, or even be removed.
18//
19// We mean it.
20//
21
22QT_BEGIN_NAMESPACE
23
24#ifdef QT_NO_DEBUG
25# define NDEBUG 1
26#endif
27#undef assert
28#define assert Q_ASSERT
29
30QT_WARNING_PUSH
31QT_WARNING_DISABLE_GCC("-Wunused-function")
32QT_WARNING_DISABLE_CLANG("-Wunused-function")
33QT_WARNING_DISABLE_CLANG("-Wundefined-internal")
34
35#define CBOR_NO_VALIDATION_API 1
36#define CBOR_NO_PRETTY_API 1
37#define CBOR_API static inline
38#define CBOR_PRIVATE_API static inline
39#define CBOR_INLINE_API static inline
40
41#include <cbor.h>
42
43QT_WARNING_POP
44
45Q_DECLARE_TYPEINFO(CborValue, Q_PRIMITIVE_TYPE);
46
47QT_END_NAMESPACE
48
49#endif // QCBORCOMMON_P_H
50

source code of qtbase/src/corelib/serialization/qcborcommon_p.h