// 宏定义,判断是否OK,否则输出错误对应的函数和行数
#define ATTEMPT(xFuncToTry) {if(xFuncToTry != MXD_OK) \
{MXD_DBG_ERROR("ATTEMPT failed at %s:%u\n",__FUNCTION__,__LINE__); \
return MXD_FAIL;}}
// printf 宏定义
#define IIC_DEBUG(...) printf(__VA_ARGS__)
标签:__,ATTEMPT,技巧,C语言,printf,MXD,define
From: https://www.cnblogs.com/han-guang-xue/p/16856810.html