This can be achieved by setting a global flag in the handler code and checking for the flag after completion of the critical part.
这可以通过在信号处理程序代码中设置一个全局标志并在完成关键部分的代码之后检查这个标志来实现。
We might want to perform error checking for production code.
我们可能想要对产品代码执行错误校验。
This additional information is used by tools for the purposes of documentation, compiler checking, and code analysis.
用于文档编制、编译器检查和代码分析的工具可以使用这些额外信息。
The download versions of the samples include a test driver and also have some added code for checking the operation of the different models by counting elements, deletes, and adds.
样本的下载版本包括一个测试驱动程序,还有一些添加的代码用于通过计算元素、删除和添加的个数来检查不同模型的操作。
SQLJ can perform syntactic and semantic checking on the code, using database connections at compile time.
SQLJ可以通过在编译时使用数据库连接,对代码执行语法和语义上的检查。
Additional data type checking code is not necessary.
额外的数据类型检查代码是不必要的。
Because checking a large code base can take a noticeable amount of time, even on fast hardware, this can also help you find specific problems you're looking for more quickly.
因为检查大型的代码基址需要的时间相当长,即使是在快速硬件上也是如此,所以这种方法还可以帮助您更快地发现您要查找的特定问题。
In general, metadata's benefits fall into three categories: documentation, compiler checking, and code analysis.
一般来说,元数据的好处分为三类:文档编制、编译器检查和代码分析。
As is usual in example code, error checking has been omitted, but even so, this is a quick and easy way of saving data to file.
因为在示例代码中通常省略了错误检查,即便如此,这仍是将数据保存到文件中的快速简单的方法。
They both have syntax checking, code completion, and code folding. They both let you compile, run, and debug your code.
它们都有语法检验、代码完成和代码合并,都允许编译、运行和调试代码。
The main value of this database is to allow for checking the code base periodically for regression or the introduction of errors as development proceeds.
这个数据库的主要价值在于:在开发期间,允许定期检查代码库以查看代码是否退化或引入了错误。
Of course, a real implementation would need error checking code to make the access more robust.
当然,实际实现需要使用错误检查代码来确保访问更为稳定。
Using the QR code output requires much less error checking.
使用qr码输出需要较少的错误检查。
You'll notice some of the Eclipse editor's features as you type, including syntax checking and code completion.
您会在键入时注意到Eclipse编辑器的一些特性,包括语法检查和代码自动完成。
Remember that Purify only performs memory error checking on code that you actually execute during testing.
记住Purify只执行您在测试过程中实际执行的代码中的内存错误的检验。
3 Each activity (from checking in code to fixing a broken test) should be easy to perform and provide quick feedback to both the individual programmer and the entire team.
3每一个活动(来自于代码检测确定损坏测试)都应很容易的执行,并为单个程序员和整体团队提供快速反馈。
The basic method for error checking is to write your code as shown in listing 1.
错误检查的基本方法是编写如清单1所示的代码。
Any code that is worth checking into your version control system is worth inspecting.
任何值得提交到你的版本控制系统的代码都是值得复查的。
Most programmers are familiar with checking in and checking out their code, and know what versions go with which software release.
大多数程序员都熟悉对代码进行签入和签出操作,并知道什么版本与哪个软件发行版是对应的。
This simpler approach is usually better when you are aiming at a smaller scope, such as those usually performed by developers before checking in their code for a specific task.
当您的目标是一个较小的范围时,更简单的方法是通常会更好,比如在核查他们的特定任务的代码之前开发人员通常会执行它们。
The practices rely on manual steps -- integrating code, running tests, and checking code in at the right times -- that can lead to mistakes.
目前的实践依赖手工步骤 ——集成代码、运行测试、在合适的时间检入代码,这样的实践有可能造成错误。
Imagine if your developers could pre-check their code by running private "integration builds" outside their local workspaces, but without checking their code in.
设想在不检入代码的情况下,您的开发人员是否可以通过在本地的工作区之外运行个人的“集成构建”来预检查代码。
The same model applies no matter what type of code you are checking in (or documents for that matter).
无论检入何种类型的代码(或文档之类),同样的模型也是可用的。
You should always run these tests on a local developer's box before checking in any code, too.
在签入任何代码前,也应该总在一个本地开发人员机器上运行这些测试。
This only happens, however, when every programmer is checking code into the system on a frequent basis.
这仅仅当每名程序员能够经常性的检入系统代码时才会发生。
One known drawback of static analysis tools is that they generate false alarms, so that you may spend more time than you would like checking code patterns that are not buggy.
静态分析工具的另一个常见的缺点是它们会产生错误的警告,这样您可能会浪费更多时间去检查本来不是缺陷的问题。
This live data capability can help hone your testing efforts before checking in code into a CM system, for example.
例如,这种实时数据功能有助于在将代码签入CM系统前更好地进行测试。
If code changes are worth checking in, then they are worth running through code review first.
如果代码的变化值得登记的话,那么它们就值得首先通过代码复查来运行。
It assumes you are checking-in code at least once a day.
它认为每天只要至少签入一次代码即可。
Asynchronous in this case means "punt my IO operation to a built-in thread pool", with subsequent code checking on the status of those operations and getting results from a "future" handle.
在这里,异步的意义在于“把IO操作放到内置的线程池”,通过代码检查操作状态,获得“未来”句柄结果。
应用推荐