5#ifndef QTCONFIGMACROS_H
6#define QTCONFIGMACROS_H
9# pragma qt_sync_stop_processing
12#include <QtCore/qtconfiginclude.h>
13#include <QtCore/qtdeprecationdefinitions.h>
14#include <QtCore/qtversionchecks.h>
19
20
21
22
23
24
25
26
30# error "QT_SHARED and QT_BOOTSTRAPPED together don't make sense. Please fix the build"
31# elif !defined(QT_STATIC)
36#if defined(QT_SHARED) || !defined(QT_STATIC)
38# error "Both QT_SHARED and QT_STATIC defined, please make up your mind"
46
47
48
49
50
51
52
53#if defined(QT_BUILD_INTERNAL) && defined(QT_BUILDING_QT) && defined(QT_SHARED)
54# define Q_AUTOTEST_EXPORT Q_DECL_EXPORT
55#elif defined(QT_BUILD_INTERNAL) && defined(QT_SHARED)
56# define Q_AUTOTEST_EXPORT Q_DECL_IMPORT
58# define Q_AUTOTEST_EXPORT
62
63
64
65
66
67
68#define QT_CONFIG(feature) (1
/QT_FEATURE_##feature == 1
)
69#define QT_REQUIRE_CONFIG(feature) static_assert(QT_FEATURE_##feature == 1
, "Required feature " #feature " for file " __FILE__ " not available.")
80
81
83#if !defined(QT_NO_DEBUG) && !defined(QT_DEBUG)
88#define QT_MANGLE_NAMESPACE0(x) x
89#define QT_MANGLE_NAMESPACE1(a, b) a##_##b
91#if !defined(QT_NAMESPACE) || defined(Q_MOC_RUN)
92# define QT_MANGLE_NAMESPACE(name) name
94# define QT_MANGLE_NAMESPACE(name) QT_MANGLE_NAMESPACE2(
95 QT_MANGLE_NAMESPACE0(name), QT_MANGLE_NAMESPACE0(QT_NAMESPACE))
100#if !defined(QT_NAMESPACE) || defined(Q_MOC_RUN)
102# define QT_PREPEND_NAMESPACE(name) ::name
103# define QT_USE_NAMESPACE
104# define QT_BEGIN_NAMESPACE
105# define QT_END_NAMESPACE
106# define QT_BEGIN_INCLUDE_NAMESPACE
107# define QT_END_INCLUDE_NAMESPACE
108# define QT_FORWARD_DECLARE_CLASS(name) class name;
109# define QT_FORWARD_DECLARE_STRUCT(name) struct name;
111#elif defined(QT_INLINE_NAMESPACE)
113# define QT_PREPEND_NAMESPACE(name) ::QT_NAMESPACE::name
114# define QT_USE_NAMESPACE
115# define QT_BEGIN_NAMESPACE inline namespace QT_NAMESPACE {
116# define QT_END_NAMESPACE }
117# define QT_BEGIN_INCLUDE_NAMESPACE }
118# define QT_END_INCLUDE_NAMESPACE inline namespace QT_NAMESPACE {
119# define QT_FORWARD_DECLARE_CLASS(name) QT_BEGIN_NAMESPACE
120 class name; QT_END_NAMESPACE
122# define QT_FORWARD_DECLARE_STRUCT(name) QT_BEGIN_NAMESPACE
123 struct name; QT_END_NAMESPACE
125inline namespace QT_NAMESPACE {}
129# define QT_PREPEND_NAMESPACE(name) ::QT_NAMESPACE::name
130# define QT_USE_NAMESPACE using namespace ::QT_NAMESPACE;
131# define QT_BEGIN_NAMESPACE namespace QT_NAMESPACE {
132# define QT_END_NAMESPACE }
133# define QT_BEGIN_INCLUDE_NAMESPACE }
134# define QT_END_INCLUDE_NAMESPACE namespace QT_NAMESPACE {
135# define QT_FORWARD_DECLARE_CLASS(name)
136 QT_BEGIN_NAMESPACE class name; QT_END_NAMESPACE
137 using QT_PREPEND_NAMESPACE(name);
139# define QT_FORWARD_DECLARE_STRUCT(name)
140 QT_BEGIN_NAMESPACE struct name; QT_END_NAMESPACE
141 using QT_PREPEND_NAMESPACE(name);
143namespace QT_NAMESPACE {}
145# ifndef QT_BOOTSTRAPPED
146# ifndef QT_NO_USING_NAMESPACE
148
149
150
151
152
161# define QT_BEGIN_NAMESPACE
162# define QT_END_NAMESPACE
163# define QT_USE_NAMESPACE
164# define QT_BEGIN_INCLUDE_NAMESPACE
165# define QT_END_INCLUDE_NAMESPACE
170#ifndef QT_BEGIN_MOC_NAMESPACE
173#ifndef QT_END_MOC_NAMESPACE
174# define QT_END_MOC_NAMESPACE
178
179
180
181
182
183#ifdef QT_ENABLE_STRICT_MODE_UP_TO
184#ifndef QT_DISABLE_DEPRECATED_UP_TO
185# define QT_DISABLE_DEPRECATED_UP_TO QT_ENABLE_STRICT_MODE_UP_TO
188#if QT_ENABLE_STRICT_MODE_UP_TO >= QT_VERSION_CHECK(6
, 0
, 0
)
189# ifndef QT_NO_FOREACH
190# define QT_NO_FOREACH
192# ifndef QT_NO_CAST_TO_ASCII
193# define QT_NO_CAST_TO_ASCII
195# ifndef QT_NO_CAST_FROM_BYTEARRAY
196# define QT_NO_CAST_FROM_BYTEARRAY
198# ifndef QT_NO_URL_CAST_FROM_STRING
199# define QT_NO_URL_CAST_FROM_STRING
201# ifndef QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
202# define QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
204# ifndef QT_NO_JAVA_STYLE_ITERATORS
205# define QT_NO_JAVA_STYLE_ITERATORS
209#if QT_ENABLE_STRICT_MODE_UP_TO >= QT_VERSION_CHECK(6
, 6
, 0
)
210# ifndef QT_NO_QEXCHANGE
211# define QT_NO_QEXCHANGE
215#if QT_ENABLE_STRICT_MODE_UP_TO >= QT_VERSION_CHECK(6
, 7
, 0
)
216# ifndef QT_NO_CONTEXTLESS_CONNECT
217# define QT_NO_CONTEXTLESS_CONNECT
221#if QT_ENABLE_STRICT_MODE_UP_TO >= QT_VERSION_CHECK(6
, 8
, 0
)
222# ifndef QT_NO_QASCONST
223# define QT_NO_QASCONST
225# if !defined(QT_USE_NODISCARD_FILE_OPEN) && !defined(QT_NO_USE_NODISCARD_FILE_OPEN)
226# define QT_USE_NODISCARD_FILE_OPEN
230#if QT_ENABLE_STRICT_MODE_UP_TO >= QT_VERSION_CHECK(6
, 9
, 0
)
231# ifndef QT_NO_QSNPRINTF
232# define QT_NO_QSNPRINTF
236#if QT_ENABLE_STRICT_MODE_UP_TO >= QT_VERSION_CHECK(6
, 11
, 0
)
237# ifndef QT_NO_SINGLE_ARGUMENT_QHASH_OVERLOAD
238# define QT_NO_SINGLE_ARGUMENT_QHASH_OVERLOAD
#define __has_include_next(x)
#define Q_NODISCARD_X(message)
#define Q_ASSUME_IMPL(expr)
#define Q_DECL_DEPRECATED_X(text)
#define Q_UNREACHABLE_IMPL()
#define __has_c_attribute(x)
#define __has_attribute(x)
#define Q_DECL_PURE_FUNCTION
#define Q_DECL_CONST_FUNCTION
#define QT_WARNING_DISABLE_DEPRECATED
#define Q_DECL_DEPRECATED
#define QT_DO_PRAGMA(text)
#define Q_DECL_COLD_FUNCTION
#define QT_WARNING_DISABLE_GCC(text)
#define QT_WARNING_DISABLE_INVALID_OFFSETOF
#define Q_DECL_UNUSED_MEMBER
#define Q_NODISCARD_CTOR_X(message)
#define Q_REQUIRED_RESULT
#define QT_WARNING_DISABLE_CLANG(text)
#define Q_DECL_EXPORT_OVERRIDABLE
#define __has_cpp_attribute(x)
#define QT_FT_MAX_GRAY_SPANS
static int gray_move_to(const QT_FT_Vector *to, PWorker worker)
static void gray_record_cell(RAS_ARG)
#define QT_FT_MEM_ZERO(dest, count)
#define ErrRaster_Memory_Overflow
static PCell gray_find_cell(RAS_ARG)
static void gray_raster_done(QT_FT_Raster raster)
static void gray_render_line(RAS_ARG_ TPos to_x, TPos to_y)
static int gray_convert_glyph_inner(RAS_ARG)
static void gray_start_cell(RAS_ARG_ TCoord ex, TCoord ey)
static void gray_split_conic(QT_FT_Vector *base)
#define ErrRaster_Invalid_Argument
static int gray_raster_new(QT_FT_Raster *araster)
static int QT_FT_Outline_Decompose(const QT_FT_Outline *outline, void *user)
#define QT_FT_DIV_MOD(type, dividend, divisor, quotient, remainder)
#define QT_FT_HYPOT(x, y)
static void gray_render_cubic(RAS_ARG_ const QT_FT_Vector *control1, const QT_FT_Vector *control2, const QT_FT_Vector *to)
static int gray_convert_glyph(RAS_ARG)
#define QT_FT_ERR_XCAT(x, y)
static int gray_raster_render(QT_FT_Raster raster, const QT_FT_Raster_Params *params)
#define ErrRaster_Invalid_Mode
static void gray_raster_reset(QT_FT_Raster raster, char *pool_base, long pool_size)
static void gray_compute_cbox(RAS_ARG)
static void gray_set_cell(RAS_ARG_ TCoord ex, TCoord ey)
#define ErrRaster_OutOfMemory
#define QT_FT_ERR_CAT(x, y)
#define QT_FT_MEM_SET(d, s, c)
static void gray_init_cells(RAS_ARG_ void *buffer, long byte_size)
static void gray_render_conic(RAS_ARG_ const QT_FT_Vector *control, const QT_FT_Vector *to)
static void gray_sweep(RAS_ARG_ const QT_FT_Bitmap *target)
static void gray_render_scanline(RAS_ARG_ TCoord ey, TPos x1, TCoord y1, TPos x2, TCoord y2)
static void gray_render_span(int count, const QT_FT_Span *spans, PWorker worker)
#define ErrRaster_Invalid_Outline
static void gray_split_cubic(QT_FT_Vector *base)
static void gray_hline(RAS_ARG_ TCoord x, TCoord y, TPos area, int acount)
#define __has_extension(X)
#define QT_MANGLE_NAMESPACE(name)
#define QT_MANGLE_NAMESPACE1(a, b)
long buffer_allocated_size
qt_ft_jmp_buf jump_buffer
QT_FT_Raster_Span_Func render_span
QT_FT_Span gray_spans[QT_FT_MAX_GRAY_SPANS]