*polished code.

This commit is contained in:
Wang Renxin 2015-10-23 13:59:50 +08:00
parent b6b881e76e
commit d414cffca6

View File

@ -165,12 +165,7 @@ extern "C" {
#endif /* mb_make_nil */
#ifndef mb_int_val
# define mb_int_val(__v, __i) \
do { \
if((__v).type == MB_DT_INT) (__i) = (__v).value.integer; \
else if((__v).type == MB_DT_REAL) (__i) = (int_t)((__v).value.float_point); \
else (__i) = ~((int_t)0); \
} while(0)
# define mb_int_val(__v, __i) do { if((__v).type == MB_DT_INT) (__i) = (__v).value.integer; else if((__v).type == MB_DT_REAL) (__i) = (int_t)((__v).value.float_point); else (__i) = ~((int_t)0); } while(0)
#endif /* mb_int_val */
#ifndef MB_CODES