Debian Codegraph @

src/LomiriMetrics/lomirimetricsglobal_p.h

raw symbols SCIP
1 // Copyright © 2016 Canonical Ltd.cxx . . $ `<file>/src/LomiriMetrics/lomirimetricsglobal_p.h`/
2 // Author: Loïc Molinari <[email protected]>
3 //
4 // This file is part of Lomiri UI Toolkit.
5 //
6 // Lomiri UI Toolkit is free software: you can redistribute it and/or modify it
7 // under the terms of the GNU Lesser General Public License as published by the
8 // Free Software Foundation; version 3.
9 //
10 // Lomiri UI Toolkit is distributed in the hope that it will be useful, but
11 // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
13 // for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public License
16 // along with Lomiri UI Toolkit. If not, see <http://www.gnu.org/licenses/>.
17
18 #ifndef LOMIRIMETRICSGLOBAL_P_H
19 #define LOMIRIMETRICSGLOBAL_P_Hcxx . . $ `src/LomiriMetrics/lomirimetricsglobal_p.h:19:9`!
20
21 #include <QtGlobal>
22
23 #if QT_VERSIONcxx . . $ `<external>/15045578679651060896/qglobal.h:57:9`! >= QT_VERSION_CHECKcxx . . $ `<external>/15045578679651060896/qglobal.h:61:9`!(6, 0, 0)
24 #include <LomiriMetrics-Qt6/lomirimetricsglobal.h>
25 #else
26 #include <LomiriMetrics/lomirimetricsglobal.h>cxx . . $ `<file>/include/LomiriMetrics/lomirimetricsglobal.h`/
27 #endif
28
29 // Logging macros, debug macros are compiled out for release builds.
30 #define LOGcxx . . $ `src/LomiriMetrics/lomirimetricsglobal_p.h:30:9`!(...) qDebug(__VA_ARGS__)
31 #define WARNcxx . . $ `src/LomiriMetrics/lomirimetricsglobal_p.h:31:9`!(...) qWarning(__VA_ARGS__)
32 #define ASSERTcxx . . $ `src/LomiriMetrics/lomirimetricsglobal_p.h:32:9`!(cond) do { if (Q_UNLIKELY(!(cond))) \
33 qFatal("Assertion `"#cond"' failed in file %s, line %d", __FILE__, __LINE__); } while (0)
34 #define ASSERT_Xcxx . . $ `src/LomiriMetrics/lomirimetricsglobal_p.h:34:9`!(cond,message) do { if (Q_UNLIKELY(!(cond))) \
35 qFatal("Assertion "#message" failed in file %s, line %d", __FILE__, __LINE__); } while (0)
36 #define NOT_REACHEDcxx . . $ `src/LomiriMetrics/lomirimetricsglobal_p.h:36:9`!() \
37 qFatal("Assertion `not reached' failed in file %s, line %d", __FILE__, __LINE__);
38
39 #if !defined(QT_NO_DEBUGcxx . . $ `<built-in>:496:9`!)
40 #define DLOG(...) LOG(__VA_ARGS__)
41 #define DWARN(...) WARN(__VA_ARGS__)
42 #define DNOT_REACHED(...) NOT_REACHED()
43 #define DASSERT(cond) ASSERT(cond)
44 #define DASSERT_X(cond,message) ASSERT(cond, message)
45 #else
46 #define DLOGcxx . . $ `src/LomiriMetrics/lomirimetricsglobal_p.h:46:9`!(...) qt_noop()
47 #define DWARNcxx . . $ `src/LomiriMetrics/lomirimetricsglobal_p.h:47:9`!(...) qt_noop()
48 #define DNOT_REACHEDcxx . . $ `src/LomiriMetrics/lomirimetricsglobal_p.h:48:9`!(...) qt_noop()
49 #define DASSERTcxx . . $ `src/LomiriMetrics/lomirimetricsglobal_p.h:49:9`!(cond) qt_noop()
50 #define DASSERT_Xcxx . . $ `src/LomiriMetrics/lomirimetricsglobal_p.h:50:9`!(cond,message) qt_noop()
51 #endif
52
53 // Compile-time constant representing the number of elements in an array.
54 template<typename T, size_tcxx . . $ size_t# N> constexpr size_tcxx . . $ size_t# ARRAY_SIZEcxx . . $ ARRAY_SIZE(a90489531ad14bf6).(T (&)[N]) { return N; }
55
56 #define IS_POWER_OF_TWOcxx . . $ `src/LomiriMetrics/lomirimetricsglobal_p.h:56:9`!(n) !((n) & ((n) - 1))
57
58 #define LOMIRI_METRICS_PRIVATE_EXPORTcxx . . $ `src/LomiriMetrics/lomirimetricsglobal_p.h:58:9`! LOMIRI_METRICS_EXPORTcxx . . $ `src/LomiriMetrics/lomirimetricsglobal.h:24:9`!
59
60 // Allocates size bytes and returns an pointer to the aligned memory. alignment
61 // must be a power-of-two and size a multiple of alignment.
62 void* alignedAlloccxx . . $ alignedAlloc(63a7bf2941bfcd7a).(size_tcxx . . $ size_t# alignment, size_tcxx . . $ size_t# size);
63
64 #endif // LOMIRIMETRICSGLOBAL_P_H