14 #define CONNECTION_CLOSE_REASON_STRING(e, r) r, 18 #undef CONNECTION_CLOSE_REASON_STRING 22 index = (
unsigned int)ConnectionCloseReason::kMAX_REASON - 1;
25 return connectionCloseStrings[index];
29 return connectionCloseStrings[(
unsigned int)r];
const char * getConnectionCloseReasonString(ConnectionCloseReason r)
#define CONNECTION_CLOSE_REASON_GEN(x)
const char * connectionCloseStrings[]
const char * getConnectionCloseReasonStringByIndex(unsigned int index)
#define CONNECTION_CLOSE_REASON_STRING(e, r)