|
|
@@ -999,6 +999,12 @@ NSString * __nullable DDExtractFileNameWithoutExtension(const char *filePath, BO
|
|
|
|
|
|
_line = line;
|
|
|
_representedObject = tag;
|
|
|
+#if DD_LEGACY_MESSAGE_TAG
|
|
|
+#pragma clang diagnostic push
|
|
|
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
|
|
+ _tag = tag;
|
|
|
+#pragma clang diagnostic pop
|
|
|
+#endif
|
|
|
_options = options;
|
|
|
_timestamp = timestamp ?: [NSDate new];
|
|
|
|
|
|
@@ -1079,6 +1085,12 @@ NSString * __nullable DDExtractFileNameWithoutExtension(const char *filePath, BO
|
|
|
newMessage->_function = _function;
|
|
|
newMessage->_line = _line;
|
|
|
newMessage->_representedObject = _representedObject;
|
|
|
+#if DD_LEGACY_MESSAGE_TAG
|
|
|
+#pragma clang diagnostic push
|
|
|
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
|
|
+ newMessage->_tag = _tag;
|
|
|
+#pragma clang diagnostic pop
|
|
|
+#endif
|
|
|
newMessage->_options = _options;
|
|
|
newMessage->_timestamp = _timestamp;
|
|
|
newMessage->_threadID = _threadID;
|
|
|
@@ -1089,7 +1101,7 @@ NSString * __nullable DDExtractFileNameWithoutExtension(const char *filePath, BO
|
|
|
return newMessage;
|
|
|
}
|
|
|
|
|
|
-// ensure compatibility even when build with DD_LEGACY_MESSAGE_TAG to 0.
|
|
|
+// ensure compatibility even when built with DD_LEGACY_MESSAGE_TAG to 0.
|
|
|
- (id)tag {
|
|
|
return _representedObject;
|
|
|
}
|