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

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1391 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Eric Wasylishen 2017-04-02 00:45:00 +00:00
parent 2d394e7a29
commit 3cae0dae3f
1 changed files with 3 additions and 0 deletions

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