Debian Codegraph @

src/LomiriGestures/lomirigesturesglobal.h

raw symbols SCIP
1 /*
2 * Copyright 2015 Canonical Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; version 3.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17 #ifndef LOMIRIGESTURESGLOBAL_H
18 #define LOMIRIGESTURESGLOBAL_H
19
20 #include <QtCore/QtGlobal>
21
22 #if defined(QT_BUILD_LOMIRIGESTURES_LIB)
23 # define LOMIRIGESTURES_EXPORT Q_DECL_EXPORT
24 #else
25 # define LOMIRIGESTURES_EXPORT Q_DECL_IMPORT
26 #endif
27
28 #if !defined(LOMIRIGESTURES_NO_NAMESPACE)
29
30 #define UG_NAMESPACE_BEGIN namespace LomiriGestures {
31 #define UG_NAMESPACE_END }
32 #define UG_PREPEND_NAMESPACE(name) LomiriGestures::name
33 #define UG_USE_NAMESPACE using namespace LomiriGestures;
34 #define UG_FORWARD_DECLARE_CLASS(name) \
35 UG_NAMESPACE_BEGIN class name; UG_NAMESPACE_END \
36 using UG_PREPEND_NAMESPACE(name);
37 #define UG_FORWARD_DECLARE_STRUCT(name) \
38 UG_NAMESPACE_BEGIN struct name; UG_NAMESPACE_END \
39 using UG_PREPEND_NAMESPACE(name);
40
41 #else // no namespace
42
43 #define UG_NAMESPACE_BEGIN
44 #define UG_NAMESPACE_END
45 #define UG_PREPEND_NAMESPACE(name) name
46 #define UG_USE_NAMESPACE
47 #define UG_FORWARD_DECLARE_CLASS(name) class name;
48 #define UG_FORWARD_DECLARE_STRUCT(name) struct name;
49
50 #endif
51
52 #endif // LOMIRIGESTURESGLOBAL_H