-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'linuxdeepin:master' into master
- Loading branch information
Showing
15 changed files
with
200 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// SPDX-FileCopyrightText: 2022 - 2023 UnionTech Software Technology Co., Ltd. | ||
// | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
#ifndef UNILOG_H | ||
#define UNILOG_H | ||
|
||
#include <QDebug> | ||
|
||
#ifdef QT_DEBUG | ||
#define UNI_DEBUG | ||
#endif | ||
#ifdef UNI_DEBUG | ||
#define uniDebug(...) qDebug(__VA_ARGS__) | ||
#define uniInfo(...) qInfo(__VA_ARGS__) | ||
#define uniWarning(...) qWarning(__VA_ARGS__) | ||
#define uniCritical(...) qCritical(__VA_ARGS__) | ||
#else | ||
#define NO_DEBUG(LOG) QMessageLogger().noDebug(LOG) | ||
#define uniDebug(...) NO_DEBUG(__VA_ARGS__) | ||
#define uniInfo(...) NO_DEBUG(__VA_ARGS__) | ||
#define uniWarning(...) NO_DEBUG(__VA_ARGS__) | ||
#define uniCritical(...) NO_DEBUG(__VA_ARGS__) | ||
#endif | ||
|
||
#endif // UNILOG_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.