Skip to content

Commit aa68b62

Browse files
authored
Fix broken doxygen when using 2 layer macro for deprecation warning. (#1937)
1 parent 8e44878 commit aa68b62

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Packet++/header/TcpLayer.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#include "TLVData.h"
66
#include <string.h>
77

8-
#define PCPP_DEPRECATED_TCP_OPTION_TYPE \
9-
PCPP_DEPRECATED("enum TcpOptionType is deprecated; Use enum class TcpOptionEnumType instead")
8+
#define PCPP_INTERNAL_DEPRECATE_TCP_OPTION_TYPE_MSG \
9+
"enum TcpOptionType is deprecated; Use enum class TcpOptionEnumType instead"
1010

1111
/// @file
1212

@@ -364,7 +364,7 @@ namespace pcpp
364364
};
365365

366366
/// @deprecated This method is deprecated, please use constructor with TcpOptionEnumType
367-
PCPP_DEPRECATED_TCP_OPTION_TYPE
367+
PCPP_DEPRECATED(PCPP_INTERNAL_DEPRECATE_TCP_OPTION_TYPE_MSG)
368368
TcpOptionBuilder(TcpOptionType optionType, const uint8_t* optionValue, uint8_t optionValueLen)
369369
: TLVRecordBuilder(static_cast<uint8_t>(optionType), optionValue, optionValueLen)
370370
{}
@@ -380,7 +380,7 @@ namespace pcpp
380380
{}
381381

382382
/// @deprecated This method is deprecated, please use constructor with TcpOptionEnumType
383-
PCPP_DEPRECATED_TCP_OPTION_TYPE
383+
PCPP_DEPRECATED(PCPP_INTERNAL_DEPRECATE_TCP_OPTION_TYPE_MSG)
384384
TcpOptionBuilder(TcpOptionType optionType, uint8_t optionValue)
385385
: TLVRecordBuilder(static_cast<uint8_t>(optionType), optionValue)
386386
{}
@@ -394,7 +394,7 @@ namespace pcpp
394394
{}
395395

396396
/// @deprecated This method is deprecated, please use constructor with TcpOptionEnumType
397-
PCPP_DEPRECATED_TCP_OPTION_TYPE
397+
PCPP_DEPRECATED(PCPP_INTERNAL_DEPRECATE_TCP_OPTION_TYPE_MSG)
398398
TcpOptionBuilder(TcpOptionType optionType, uint16_t optionValue)
399399
: TLVRecordBuilder(static_cast<uint8_t>(optionType), optionValue)
400400
{}
@@ -408,7 +408,7 @@ namespace pcpp
408408
{}
409409

410410
/// @deprecated This method is deprecated, please use constructor with TcpOptionEnumType
411-
PCPP_DEPRECATED_TCP_OPTION_TYPE
411+
PCPP_DEPRECATED(PCPP_INTERNAL_DEPRECATE_TCP_OPTION_TYPE_MSG)
412412
TcpOptionBuilder(TcpOptionType optionType, uint32_t optionValue)
413413
: TLVRecordBuilder(static_cast<uint8_t>(optionType), optionValue)
414414
{}
@@ -480,7 +480,7 @@ namespace pcpp
480480
uint16_t getDstPort() const;
481481

482482
/// @deprecated This method is deprecated, please use getTcpOption(TcpOptionEnumType option)
483-
PCPP_DEPRECATED_TCP_OPTION_TYPE
483+
PCPP_DEPRECATED(PCPP_INTERNAL_DEPRECATE_TCP_OPTION_TYPE_MSG)
484484
TcpOption getTcpOption(TcpOptionType option) const;
485485

486486
/// Get a TCP option by type
@@ -529,7 +529,7 @@ namespace pcpp
529529
TcpOptionEnumType prevOptionType = TcpOptionEnumType::Unknown);
530530

531531
/// @deprecated This method is deprecated, please use removeTcpOption(TcpOptionEnumType)
532-
PCPP_DEPRECATED_TCP_OPTION_TYPE
532+
PCPP_DEPRECATED(PCPP_INTERNAL_DEPRECATE_TCP_OPTION_TYPE_MSG)
533533
bool removeTcpOption(TcpOptionType optionType);
534534

535535
/// Remove an existing TCP option from the layer. TCP option is found by type
@@ -601,4 +601,4 @@ namespace pcpp
601601
}
602602
} // namespace pcpp
603603

604-
#undef PCPP_DEPRECATED_TCP_OPTION_TYPE
604+
#undef PCPP_INTERNAL_DEPRECATE_TCP_OPTION_TYPE_MSG

0 commit comments

Comments
 (0)