乐趣区

取消宏定义

今天遇到一个问题是:重复宏定义。想到的解决方法是使用 undef 取消该重复宏。

解决方法

#ifdef xxx
    #undef xxx
#endif

#ifndef xxx
    #define xxx
#endif
退出移动版