qchartglobal.h
88 lines
| 2.9 KiB
| text/x-c
|
CLexer
/ src / qchartglobal.h
|
r794 | /**************************************************************************** | ||
** | ||||
|
r2432 | ** Copyright (C) 2013 Digia Plc | ||
|
r794 | ** All rights reserved. | ||
** For any questions to Digia, please use contact form at http://qt.digia.com | ||||
** | ||||
|
r2574 | ** This file is part of the Qt Enterprise Charts Add-on. | ||
|
r794 | ** | ||
** $QT_BEGIN_LICENSE$ | ||||
|
r2574 | ** Licensees holding valid Qt Enterprise licenses may use this file in | ||
** accordance with the Qt Enterprise License Agreement provided with the | ||||
|
r794 | ** Software or, alternatively, in accordance with the terms contained in | ||
** a written agreement between you and Digia. | ||||
** | ||||
** If you have questions regarding the use of this file, please use | ||||
** contact form at http://qt.digia.com | ||||
** $QT_END_LICENSE$ | ||||
** | ||||
****************************************************************************/ | ||||
|
r2046 | #ifndef QCHARTGLOBAL_H | ||
#define QCHARTGLOBAL_H | ||||
|
r30 | |||
|
r2070 | #include <qglobal.h> | ||
|
r2550 | #define QTCOMMERCIALCHART_VERSION_STR "1.3.0" | ||
|
r2070 | /* | ||
QTCOMMERCIALCHART_VERSION is (major << 16) + (minor << 8) + patch. | ||||
*/ | ||||
|
r2550 | #define QTCOMMERCIALCHART_VERSION 0x010300 | ||
|
r2070 | /* | ||
can be used like #if (QTCOMMERCIALCHART_VERSION >= QTCOMMERCIALCHART_VERSION_CHECK(1, 1, 0)) | ||||
*/ | ||||
#define QTCOMMERCIALCHART_VERSION_CHECK(major, minor, patch) ((major<<16)|(minor<<8)|(patch)) | ||||
|
r30 | |||
#if defined(QTCOMMERCIALCHART_LIBRARY) | ||||
# define QTCOMMERCIALCHART_EXPORT Q_DECL_EXPORT | ||||
#else | ||||
# define QTCOMMERCIALCHART_EXPORT Q_DECL_IMPORT | ||||
#endif | ||||
|
r1050 | |||
#if defined(BUILD_PRIVATE_UNIT_TESTS) && defined(QTCOMMERCIALCHART_LIBRARY) | ||||
|
r1440 | # define QTCOMMERCIALCHART_AUTOTEST_EXPORT Q_DECL_EXPORT | ||
|
r1050 | #elif defined(BUILD_PRIVATE_UNIT_TESTS) && !defined(QTCOMMERCIALCHART_LIBRARY) | ||
|
r1440 | # define QTCOMMERCIALCHART_AUTOTEST_EXPORT Q_DECL_IMPORT | ||
|
r1050 | #else | ||
|
r1440 | # define QTCOMMERCIALCHART_AUTOTEST_EXPORT | ||
#endif | ||||
#ifdef QTCOMMERCIALCHART_STATICLIB | ||||
# undef QTCOMMERCIALCHART_EXPORT | ||||
# undef QTCOMMERCIALCHART_AUTOTEST_EXPORT | ||||
# define QTCOMMERCIALCHART_EXPORT | ||||
# define QTCOMMERCIALCHART_AUTOTEST_EXPORT | ||||
|
r1050 | #endif | ||
|
r30 | |||
#define QTCOMMERCIALCHART_NAMESPACE QtCommercialChart | ||||
#ifdef QTCOMMERCIALCHART_NAMESPACE | ||||
|
r1440 | # define QTCOMMERCIALCHART_BEGIN_NAMESPACE namespace QTCOMMERCIALCHART_NAMESPACE { | ||
# define QTCOMMERCIALCHART_END_NAMESPACE } | ||||
# define QTCOMMERCIALCHART_USE_NAMESPACE using namespace QTCOMMERCIALCHART_NAMESPACE; | ||||
|
r30 | #else | ||
|
r1440 | # define QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||
# define QTCOMMERCIALCHART_END_NAMESPACE | ||||
# define QTCOMMERCIALCHART_USE_NAMESPACE | ||||
|
r30 | #endif | ||
|
r998 | #if defined(DEVELOPMENT_BUILD) && !defined(QT_NO_DEBUG) | ||
|
r131 | #include <stdarg.h> | ||
#include <QDebug> | ||||
|
r1440 | #define CHART_DEBUG chartDebug(3,__LINE__,__FILE__,__FUNCTION__) | ||
|
r996 | static inline QDebug chartDebug(int numargs,...) | ||
|
r131 | { | ||
|
r2097 | va_list valist; | ||
va_start(valist, numargs); | ||||
//for( int i = 0 ; i < numargs; i++ ) | ||||
int line = va_arg(valist, int); | ||||
|
r2104 | char *file = va_arg(valist, char *); | ||
char *function = va_arg(valist, char *); | ||||
|
r2097 | va_end(valist); | ||
return qDebug() << QString().append(function).append("(").append(file).append(":%1)").arg(line); | ||||
|
r131 | } | ||
|
r996 | #endif | ||
|
r1440 | |||
|
r2046 | #endif // QCHARTGLOBAL_H | ||