add packet declare syntax check

This commit is contained in:
2024-08-21 12:28:40 +02:00
parent 6ee87733ca
commit e17387b867
2 changed files with 11 additions and 1 deletions

View File

@@ -14,5 +14,9 @@ void packets::ConcretePacket<PT, Data>::Accept(PacketVisitor& a_Visitor) const {
a_Visitor.Visit(*this);
}
#define DeclarePacket(PacketName, packetSendType, packetSenderType) static_assert(static_cast<unsigned>(PacketSendType::packetSendType) && static_cast<unsigned>(PacketSenderType::packetSenderType));
DeclareAllPacket()
} // namespace protocol
} // namespace blitz