Debian Codegraph @

src/dtkcore_global.cpp

raw
1 // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
2 //
3 // SPDX-License-Identifier: LGPL-3.0-or-later
4
5 #include "dtkcore_global.h"
6 #include <QDebug>
7 #include <QFileInfo>
8
9 #if (!defined DTK_VERSION) || (!defined DTK_VERSION_STR)
10 #error "DTK_VERSION or DTK_VERSION_STR not defined!"
11 #endif
12
13 int dtkVersion()
14 {
15 return DTK_VERSION;
16 }
17
18 const char *dtkVersionString()
19 {
20 #ifdef QT_DEBUG
21 qWarning() << "Use DTK_VERSION_STR instead.";
22 #endif
23 return ""; // DTK_VERSION_STR;
24 }