net_defs.h: add a preprocessor assertion that NET_MAXMESSAGE is sane

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1391 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
ewasylishen 2017-04-02 00:45:00 +00:00
parent 9301c512b2
commit 4141dc75ae

View file

@ -47,6 +47,9 @@ struct qsockaddr
#define NETFLAG_UNRELIABLE 0x00100000
#define NETFLAG_CTL 0x80000000
#if (NETFLAG_LENGTH_MASK & NET_MAXMESSAGE) != NET_MAXMESSAGE
#error "NET_MAXMESSAGE must fit within NETFLAG_LENGTH_MASK"
#endif
#define NET_PROTOCOL_VERSION 3