FS-11405 #resolve tweak macro to use do while 0

the original one will leave an extra semicolon after }
This commit is contained in:
Seven Du 2018-09-23 08:59:30 +08:00 committed by Mike Jerris
parent 75d038bd36
commit bdc21a0607
1 changed files with 2 additions and 2 deletions

View File

@ -66,11 +66,11 @@ SWITCH_BEGIN_EXTERN_C struct switch_unicast_conninfo {
typedef struct switch_unicast_conninfo switch_unicast_conninfo_t;
#define SWITCH_IVR_VERIFY_SILENCE_DIVISOR(divisor) \
{ \
do { \
if ((divisor) <= 0 && (divisor) != -1) { \
divisor = 400; \
} \
}
} while (0)
/**
* @defgroup switch_ivr IVR Library