我在哪里定义使用{$ IFDEF}测试的符号? [英] Where do I define symbols tested with {$IFDEF}?
本文介绍了我在哪里定义使用{$ IFDEF}测试的符号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我在代码中使用Delphi指令,如:
When I use Delphi directives in code, like:
{$IFDEF something}
.
.
.
{$ENDIF}
我在哪里可以在项目中分配单词something我在某些地方尝试过项目选项,但没有起作用。猜测我没有找到正确的。
Where do I assign the word 'something' in the project? I tried in some places in project options but it didn't work. Guess I didn't find the correct one.
推荐答案
它位于项目下的条件定义 |选项,在D2010上看起来像这样:
It's in the Conditional Defines slot under Project | Options, which looks like this on D2010:
这篇关于我在哪里定义使用{$ IFDEF}测试的符号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文