Commit 72387f01 authored by Don Gagne's avatar Don Gagne

Allow multiple QGC_LOGGING_CATEGORY in one file

parent 5ad54f97
......@@ -37,7 +37,7 @@ Q_DECLARE_LOGGING_CATEGORY(FirmwareUpgradeLog)
/// This is a QGC specific replacement for Q_LOGGING_CATEGORY. It will register the category name into a
/// global list. It's usage is the same as Q_LOGGING_CATEOGRY.
#define QGC_LOGGING_CATEGORY(name, ...) \
static QGCLoggingCategory qgcCategory(__VA_ARGS__); \
static QGCLoggingCategory qgcCategory ## name (__VA_ARGS__); \
Q_LOGGING_CATEGORY(name, __VA_ARGS__)
class QGCLoggingCategoryRegister
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment