mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-09 17:21:09 +00:00
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:
parent
2d394e7a29
commit
3cae0dae3f
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue