Fix clang8.0 build (#4399)
The protocol 13.0 PR broke clang 8.0 builds.
This commit is contained in:
parent
66e73a2d68
commit
eda2fc42d9
@ -32,10 +32,12 @@ Implements the 1.13 protocol classes:
|
|||||||
|
|
||||||
#define HANDLE_READ(ByteBuf, Proc, Type, Var) \
|
#define HANDLE_READ(ByteBuf, Proc, Type, Var) \
|
||||||
Type Var; \
|
Type Var; \
|
||||||
|
do { \
|
||||||
if (!ByteBuf.Proc(Var))\
|
if (!ByteBuf.Proc(Var))\
|
||||||
{\
|
{\
|
||||||
return;\
|
return;\
|
||||||
}
|
} \
|
||||||
|
} while (false)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -43,6 +45,7 @@ Implements the 1.13 protocol classes:
|
|||||||
|
|
||||||
#define HANDLE_PACKET_READ(ByteBuf, Proc, Type, Var) \
|
#define HANDLE_PACKET_READ(ByteBuf, Proc, Type, Var) \
|
||||||
Type Var; \
|
Type Var; \
|
||||||
|
do { \
|
||||||
{ \
|
{ \
|
||||||
if (!ByteBuf.Proc(Var)) \
|
if (!ByteBuf.Proc(Var)) \
|
||||||
{ \
|
{ \
|
||||||
@ -50,7 +53,8 @@ Implements the 1.13 protocol classes:
|
|||||||
return false; \
|
return false; \
|
||||||
} \
|
} \
|
||||||
ByteBuf.CheckValid(); \
|
ByteBuf.CheckValid(); \
|
||||||
}
|
} \
|
||||||
|
} while (false)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user