Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/QtCore/qdarwinhelpers.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Copyright (C) 2022 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 
0004 #ifndef QTDARWINHELPERS_H
0005 #define QTDARWINHELPERS_H
0006 
0007 #if 0
0008 #pragma qt_class(QtDarwinHelpers)
0009 #pragma qt_sync_stop_processing
0010 #endif
0011 
0012 /*
0013    Utility macros and inline functions
0014 */
0015 
0016 #ifndef Q_FORWARD_DECLARE_OBJC_CLASS
0017 #  ifdef __OBJC__
0018 #    define Q_FORWARD_DECLARE_OBJC_CLASS(classname) @class classname
0019 #  else
0020 #    define Q_FORWARD_DECLARE_OBJC_CLASS(classname) class classname
0021 #  endif
0022 #endif
0023 #ifndef Q_FORWARD_DECLARE_CF_TYPE
0024 #  define Q_FORWARD_DECLARE_CF_TYPE(type) typedef const struct __ ## type * type ## Ref
0025 #endif
0026 #ifndef Q_FORWARD_DECLARE_MUTABLE_CF_TYPE
0027 #  define Q_FORWARD_DECLARE_MUTABLE_CF_TYPE(type) typedef struct __ ## type * type ## Ref
0028 #endif
0029 #ifndef Q_FORWARD_DECLARE_CG_TYPE
0030 #    define Q_FORWARD_DECLARE_CG_TYPE(type) typedef const struct type *type##Ref
0031 #endif
0032 #ifndef Q_FORWARD_DECLARE_MUTABLE_CG_TYPE
0033 #    define Q_FORWARD_DECLARE_MUTABLE_CG_TYPE(type) typedef struct type *type##Ref
0034 #endif
0035 
0036 
0037 #endif // QTDARWINHELPERS_H