仅关闭一小部分代码的Delphi范围检查
如何关闭文件的一部分范围检查。关闭很简单,但如何在以后恢复到项目设置?下面的伪代码应该解释它:
Unit1;
//here's range checking on or off as per the project setting
code here...
{$R-}
//range checking is off here because the code causes range check errors
code here...
//now I want to revert to the project setting. How do I do that?
code here...
end.
没有找到相关结果
已邀请:
2 个回复
亲奋漏
剿畦缄饥小
指令包装你的代码:
请注意,该指令适用于语句级别。你不能用它包装表达式的一部分。