问题描述
我有这个结构:
{$ifopt FINITEFLOAT ON}
{$message 'FINITEFLOAT option ON' }
{$else }
{$message 'FINITEFLOAT option OFF' }
{$endif }
在我的来源,它不会编译!它必须是愚蠢的东西。错误是:
in my source and it won't compile! It's got to be something stupid. The error is:
E1030无效的编译器指令:'$ IFOPT'
E1030 Invalid compiler directive: '$IFOPT'
在第一行,但它是它抱怨的FINITEFLOAT。您似乎无法指定除R +等单字母指令作为IFOPT的参数之外的任何内容。
at the first line, but it is the FINITEFLOAT it's complaining about. You don't seem to be able to specify anything except the single letter directives like R+ etc as the argument of IFOPT.
我在这里缺少某些东西?
Am I missing something here?
推荐答案
你是完全正确的AFAICT。我不经常使用 $ IFOPT
,但每次我这个行为会让我烦恼。我不知道为什么这样实现了这个方式。
You are totally correct AFAICT. I don't use $IFOPT
often but everytime I do this behaviour annoys me. I have no idea why this is implemented this way.
编辑有一个。
这篇关于为什么{$ ifopt FINITEFLOAT ON}编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!