Clang
应用场景一:预处理
预处理可以让我们让我们自定义编译器变量,实现条件编译。 比如我们常用的DEBUG宏:
#ifdef DEBUG //... #else //... #endif
我们可以在XCode的Target中选中Build Setting选项,搜索proprecess,即可看到定义好的预处理宏。
预处理可以让我们让我们自定义编译器变量,实现条件编译。 比如我们常用的DEBUG宏:
#ifdef DEBUG //... #else //... #endif
我们可以在XCode的Target中选中Build Setting选项,搜索proprecess,即可看到定义好的预处理宏。