The default option generates code for the inline function in both the header and body files.
默认的选项是在头文件和实体文件中都为内联函数生成代码。
For example, we can add code there to verify that the user is logged in before executing this function.
例如,我们在那里添加了在执行这个函数之前验证用户已登录的代码。
This architecture isolates the e-business-specific technologies from the game environment, allowing for upgrading and extensions to function to be carried out without affecting game code.
这种架构将与电子商务技术相关的技术从游戏环境中分离出来,从而允许对于功能的升级和扩展的执行不影响游戏代码。
The oldest method for calculating code complexity is counting the number of lines in a given function or method.
计算代码复杂度的老方法,一般是统计一个给定的函数或方法中的代码行数目。
For example, if a new function is added to a source code and binary is created, verification that the source file and the binaries are in sync may be required.
例如,如果将新函数添加到源代码中并创建了相应的二进制文件,则需要验证源文件和二进制文件是同步的。
The UML to C++ transformation provides two options for generating code for an inline function.
UML到 C++ 的转换为生成一个内联函数的代码生成提供了两个选项。
The toolbar is actually a table within the HTML page, and we'll describe the code for each function.
这个工具栏实际上是HTML页面中的一个表,我们将介绍每个函数的代码。
You would have to code a different function for each type of item you wanted to swap.
对于每种需要交换的类型来说,都需要定义一个不同的函数。
By documenting what a member function does, you make it easier for others to determine if they can reuse your code.
通过对成员函数所做的事情编制文档,其他人就可以更容易地确定他们是否可以重用您的代码。
For each ODBC function invoked, a special value known as a return code is returned to the calling application.
对于每个被调用的odbc函数,都要向调用它的应用程序返回一个值,该值就是所谓的返回代码。
The code generated for the virtual function in a header file is shown in Listing 2.
在头文件中为该虚函数所生成的代码如列表2中所示。
It takes the connection object as a parameter and returns the return code for the function that was executed.
它的参数是连接对象,它返回已经执行的函数的返回码。
The labels within the interpreter function can be stored in the threaded code for super-fast dispatching.
解释程序中的函数中若使用这标签变量,那么它能被存到线程代码中以获得高效率的线程切换。
Then we call the exit() function with an error code; for this utility, we've chosen to return different numbers for every different error condition.
随后我们用错误码调用exit()函数;对于本实用程序,我们已经选择了对每个不同错误条件返回不同数字。
Listing 3. Generated Code for an inline function in header file.
列表3.在头文件中为一个内联函数所生成的代码。
Listing 5. Generated Code for an inline function using the DINLINE_HEADER option.
列表5.使用DINLINE_HEADER选项为一个内联函数生成代码。
It is true enough that dispatch.on generic function signatures for new types can be added without changing the prior code.
对于新的类型来说,的确可以添加dispatch .on通用函数签名,而不用修改以前的代码。
For example, the code in Listing 20 defines the myHandler function that can be called from any point in the program.
例如,清单20中的代码定义myhandler函数,该函数可以从程序中的任何地方调用。
It's only when you call a function contained within the module that the AutoLoader steps in and then loads and compiles the code only for that function.
只有在调用autoloader加载的模块中包含的函数、然后为该函数加载并编译代码时,才会执行这项操作。
Finally, notice that the branch target for the function call is not the code that starts it, but the.opd entry point descriptor.
最后,请注意函数调用的分支目标并不是启动它的代码,而是.opd入点描述符。
Superficially the code changes are minor; rather than having a block of code following the "for" line, the code is passed as an argument to the "Parallel.For" function.
最直观的反应就是代码只需作细微的修改;在“for”语句内的代码块,可以作为参数传递到“Parallel.For”函数中。
You might be bristling at this as it creates coupling between the code for storing and retrieving tweets and the code for displaying them, all through the processResults function.
您可能会对此感到惊讶,因为它在存储和检索tweet的代码与显示它们的代码之间创建了耦合,全都通过 processResults 函数。
Listing 4 shows the PHP code for this helper function.
清单4显示了这个helper函数的php代码。
The most relevant function is the search function, used as the basis for the sample code included with this article (see Download).
最重要的函数是search函数,它是本文包含的示例代码的基础(见下载)。
Listing 12 demonstrates the code for the cellStyle function.
清单12给出了cellstyle函数的代码。
User Function Tracing probes (or uft) for entry of exit of user written code.
针对用户编写的代码的入口或出口的用户函数跟踪探针(或uft)。
If you get a crash and the top of the active stack contains a GC function, start looking for PInvokes in your code and see if you might be passing buffers that are too small.
若在一个含有垃圾回收器功能的活动堆栈上发生崩溃,应查询代码中的PInvokes函数,查是否因缓冲区太小而发生穿越行为。
Furthermore, the code for create_function is compiled at execution time, and the resulting function cannot be cached.
此外,create_function的代码是在执行时进行编译,而且结果函数无法被缓存。
Since the source code is too big to show here, and there is no new function added in this integration sample, you can find the source code in Downloads for further study.
由于源代码全部显示在这里会显得太长,并且此整合样例中未添加任何新函数,因此您可以到下载中找到源代码进行进一步研究。
That is, if a function has a certain set or range of valid values for its arguments, an assertion to this effect can be placed as the first line of code in the function.
那就是说,如果函数有确定的有效值集合或范围可作为参数,可以将检验参数是否有效的断言放在该函数代码的第一行。
应用推荐