ios中使用宏需要注意一点:在宏定义中方法名和参数名不能相同,如
#define DebugLog(businessType, logFlag, ...) { \
[[FFTestLogManager sharedInstance] log:businessType logFlag:logFlag format:[NSString stringWithFormat:__VA_ARGS__]];\
}
这样定义是错误的,方法名和参数名不能相同#define DebugLog(businessType, flag, ...) { \
[[FFTestLogManager sharedInstance] log:businessType logFlag:flag format:[NSString stringWithFormat:__VA_ARGS__]];\
}