Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-15 09:20:14

0001 // Copyright (C) 2016 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 // Qt-Security score:significant reason:default
0004 
0005 #ifndef QTVERSION_H
0006 #define QTVERSION_H
0007 
0008 #if 0
0009 #pragma qt_class(QtVersion)
0010 #pragma qt_sync_stop_processing
0011 #endif
0012 
0013 #ifndef __ASSEMBLER__
0014 
0015 #include <QtCore/qcompilerdetection.h>
0016 #include <QtCore/qtconfigmacros.h>
0017 #include <QtCore/qtcoreexports.h>
0018 
0019 QT_BEGIN_NAMESPACE
0020 
0021 /*
0022  * If we're compiling C++ code:
0023  *  - and this is a non-namespace build, declare qVersion as extern "C"
0024  *  - and this is a namespace build, declare it as a regular function
0025  *    (we're already inside QT_BEGIN_NAMESPACE / QT_END_NAMESPACE)
0026  * If we're compiling C code, simply declare the function. If Qt was compiled
0027  * in a namespace, qVersion isn't callable anyway.
0028  */
0029 #if !defined(QT_NAMESPACE) && defined(__cplusplus) && !defined(Q_QDOC)
0030 extern "C"
0031 #endif
0032 /* defined in qlibraryinfo.cpp */
0033 Q_CORE_EXPORT Q_DECL_CONST_FUNCTION const char *qVersion(void) Q_DECL_NOEXCEPT;
0034 
0035 QT_END_NAMESPACE
0036 
0037 #endif // __ASSEMBLER__
0038 
0039 #endif // QTVERSION_H