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; \
|
||||||
if (!ByteBuf.Proc(Var))\
|
do { \
|
||||||
{\
|
if (!ByteBuf.Proc(Var))\
|
||||||
return;\
|
{\
|
||||||
}
|
return;\
|
||||||
|
} \
|
||||||
|
} while (false)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -43,14 +45,16 @@ 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)) \
|
||||||
|
{ \
|
||||||
|
ByteBuf.CheckValid(); \
|
||||||
|
return false; \
|
||||||
|
} \
|
||||||
ByteBuf.CheckValid(); \
|
ByteBuf.CheckValid(); \
|
||||||
return false; \
|
|
||||||
} \
|
} \
|
||||||
ByteBuf.CheckValid(); \
|
} while (false)
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user