UNUSED_ALWAYS是干什么用的,他的定义为
#ifdef _DEBUG
#define UNUSED(x)
#else
#define UNUSED(x) x
#endif
#define UNUSED_ALWAYS(x) x

解决方案 »

  1.   

    就是不管_DEBUG有没有定义, UNUSED_ALWAYS(x) 对x都有效~
    #ifdef _DEBUG
    #define UNUSED(x)
    #else
    #define UNUSED(x) x
    #endif
    说明定义了_DEBUG, UNUSED(x) 输出空白
      

  2.   

    这些宏主要可能使用在程序的调试:
    #ifdef _DEBUG
    #define UNUSED(x) //调试版本,输出空白
    #else
    #define UNUSED(x) x//不是调试版本,正常输出
    #endif
    #define UNUSED_ALWAYS(x) x//不管是不是调试版本,都正常输出
      

  3.   

    那下面的语句是什么意思: iTtem为int型,fCanceled为BOOL型
       UNUSED_ALWAYS( iItem );
       UNUSED_ALWAYS( fCanceled );
       return TRUE;
      

  4.   

    UNUSED_ALWAYS( iItem );
       UNUSED_ALWAYS( fCanceled );
       return TRUE;
    等价于:
    iItem;
    fCanceled;
    return TRUE;
      

  5.   

    iItem;
    fCanceled;
    请问一下这两句有什么意义?