File tree Expand file tree Collapse file tree 3 files changed +27
-15
lines changed
Expand file tree Collapse file tree 3 files changed +27
-15
lines changed Original file line number Diff line number Diff line change @@ -45,12 +45,16 @@ setConnectionStyle(QString jsonText)
4545 StyleCollection::setConnectionStyle (style);
4646}
4747
48+ #ifdef STYLE_DEBUG
49+ #define CONNECTION_STYLE_CHECK_UNDEFINED_VALUE (v, variable ) { \
50+ if (v.type () == QJsonValue::Undefined || \
51+ v.type () == QJsonValue::Null) \
52+ qWarning () << " Undefined value for parameter:" << #variable; \
53+ }
54+ #else
55+ #define CONNECTION_STYLE_CHECK_UNDEFINED_VALUE (v, variable )
56+ #endif
4857
49- #define CONNECTION_STYLE_CHECK_UNDEFINED_VALUE (v, variable ) { \
50- if (v.type () == QJsonValue::Undefined || \
51- v.type () == QJsonValue::Null) \
52- qWarning () << " Undefined value for parameter:" << #variable; \
53- }
5458
5559#define CONNECTION_VALUE_EXISTS (v ) \
5660 (v.type() != QJsonValue::Undefined && \
Original file line number Diff line number Diff line change @@ -43,11 +43,15 @@ setStyle(QString jsonText)
4343}
4444
4545
46- #define FLOW_VIEW_STYLE_CHECK_UNDEFINED_VALUE (v, variable ) { \
47- if (v.type () == QJsonValue::Undefined || \
48- v.type () == QJsonValue::Null) \
49- qWarning () << " Undefined value for parameter:" << #variable; \
50- }
46+ #ifdef STYLE_DEBUG
47+ #define FLOW_VIEW_STYLE_CHECK_UNDEFINED_VALUE (v, variable ) { \
48+ if (v.type () == QJsonValue::Undefined || \
49+ v.type () == QJsonValue::Null) \
50+ qWarning () << " Undefined value for parameter:" << #variable; \
51+ }
52+ #else
53+ #define FLOW_VIEW_STYLE_CHECK_UNDEFINED_VALUE (v, variable )
54+ #endif
5155
5256#define FLOW_VIEW_STYLE_READ_COLOR (values, variable ) { \
5357 auto valueRef = values[#variable]; \
Original file line number Diff line number Diff line change @@ -46,11 +46,15 @@ setNodeStyle(QString jsonText)
4646}
4747
4848
49- #define NODE_STYLE_CHECK_UNDEFINED_VALUE (v, variable ) { \
50- if (v.type () == QJsonValue::Undefined || \
51- v.type () == QJsonValue::Null) \
52- qWarning () << " Undefined value for parameter:" << #variable; \
53- }
49+ #ifdef STYLE_DEBUG
50+ #define NODE_STYLE_CHECK_UNDEFINED_VALUE (v, variable ) { \
51+ if (v.type () == QJsonValue::Undefined || \
52+ v.type () == QJsonValue::Null) \
53+ qWarning () << " Undefined value for parameter:" << #variable; \
54+ }
55+ #else
56+ #define NODE_STYLE_CHECK_UNDEFINED_VALUE (v, variable )
57+ #endif
5458
5559#define NODE_STYLE_READ_COLOR (values, variable ) { \
5660 auto valueRef = values[#variable]; \
You can’t perform that action at this time.
0 commit comments