diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/packetsstatic_len.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/packetsstatic_len.h b/src/common/packetsstatic_len.h index 31a3988e8..730516c27 100644 --- a/src/common/packetsstatic_len.h +++ b/src/common/packetsstatic_len.h @@ -29,6 +29,9 @@ (size_t)PACKET_LEN_##id, "Wrong size PACKET_"#name); \ enum { HEADER_##name = id }; +#define DEFINE_PACKET_ID(name, id) \ + enum { HEADER_##name = id }; + #define packetLen(id, len) PACKET_LEN_##id = (len), enum packet_lengths { #include "common/packets_len.h" |