#if EXTENDED_ALL,它有什么作用?
#if EXTENDED_ALL, what does it do?
查看由 Apple 组合的示例 swiftui 应用程序 (Fruta),我看到如下代码:
#if EXTENDED_ALL
...
#endif
但是我找不到任何关于此指令的文档。有人知道我在哪里可以找到这方面的一些文档吗?
谢谢。
这是一个“条件编译块”:
A conditional compilation block allows code to be conditionally compiled depending on the value of one or more compilation conditions.
Every conditional compilation block begins with the #if
compilation directive and ends with the #endif
compilation directive.
在 “Compiler Control Statements” in The Swift Programming Language 阅读更多内容。
啊,我真正想问的是“EXTENDED_ALL 是什么意思?”,认为这是一些标准条件。但它不是,它实际上是定制的,特定于这个特定项目。它在项目的构建设置中配置。
查看由 Apple 组合的示例 swiftui 应用程序 (Fruta),我看到如下代码:
#if EXTENDED_ALL
...
#endif
但是我找不到任何关于此指令的文档。有人知道我在哪里可以找到这方面的一些文档吗?
谢谢。
这是一个“条件编译块”:
A conditional compilation block allows code to be conditionally compiled depending on the value of one or more compilation conditions.
Every conditional compilation block begins with the
#if
compilation directive and ends with the#endif
compilation directive.
在 “Compiler Control Statements” in The Swift Programming Language 阅读更多内容。
啊,我真正想问的是“EXTENDED_ALL 是什么意思?”,认为这是一些标准条件。但它不是,它实际上是定制的,特定于这个特定项目。它在项目的构建设置中配置。