This call actually compiles to an inline function.
这个调用实际上编译成一个内联函数。
Listing 4. Generated Code for an inline function in body file.
列表4.在实体文件中为一个内联函数所生成的代码。
Listing 3. Generated Code for an inline function in header file.
列表3.在头文件中为一个内联函数所生成的代码。
The inline function can be overused in class definitions, of course.
当然,内联函数也许会在类定义里被多次使用。
In this case, you used an anonymous inline function, also known as a closure.
在这个案例中您使用一个匿名内联函数,也称为一个闭包。
Listing 5. Generated Code for an inline function using the DINLINE_HEADER option.
列表5.使用DINLINE_HEADER选项为一个内联函数生成代码。
The default option generates code for the inline function in both the header and body files.
默认的选项是在头文件和实体文件中都为内联函数生成代码。
The compiler returns the address of the copy of the inline function residing in the DLL.
编译器返回驻留在DLL中的内联函数副本的地址。
The UML to C++ transformation provides two options for generating code for an inline function.
UML到 C++ 的转换为生成一个内联函数的代码生成提供了两个选项。
For handling that kind of wrapper, an inline function within your shell might be a better bet.
对于处理此类包装,外壳中的内联函数可能更为适合。
Are there any interfaces in LLVM to compile inline function into internal representation?
有在LLVM编译成内部表示,任何内联函数接口?
Back in Listing 6, you saw that we had a button whose action var was set to an inline function.
回到清单6,我们使用了一个按钮,它的action变量被设置为一个内联函数。
For example, to create an inline function such as inline int inlineop (int x), perform these steps.
举例来说,要创建一个虚函数:inlineintinlineop (intx),请您执行下述步骤。
Is an inline function, meaning the compiled code makes the conversion, often without generating a function call.
是一个“内联函数”,这意味著转换是由已编译的代码执行的,通常不会生成函数调用。
Instead, hot call sites are more likely to be inlined to keep the code size small while still getting inline function benefits.
相反,热调用点(hot call site)更可能被内联,以使代码尽量短小,同时仍获得内联函数的优点。
As you can see, this program is really just a simple inline function hook, no more complex than the example from Chapter 5.
可以看到,这个程序不过是个简单的内嵌函数挂勾,不比第5章的例子复杂多少。
The declaration and definition generated for the inline function with this option would all be in the header file, as shown in Listing 5.
采用这一选项为内联函数所生成的声明和定义将全部位于头文件中,如列表5所示。
Furthermore, it's somewhat difficult to detect, depending on where you place your patches and whether or not you use inline function hooks.
此外,它相对地难以探测,这取决于你把补丁放在哪里以及你是否使用嵌入函数挂钩。
Another feature of imported inline functions is that you can initialize static local data of the imported function, unlike global imported data.
导入内联函数的另一项功能是您可以初始化导入函数的静态局部数据,这一点与全局导入数据不同。
Because the function will presumably be called a lot more often, the CLR is allowed to inline functions that are up to 5 times larger than the original call site.
这是因为据推测函数通常会被多次调用,所以CLR允许内联函数可以增长至原始调用大小的5倍大。
This paper analyses the difference between inline function and function, the difference between inline function and macro, and the limit to the use of inline function and macro.
本文分析了内联函数和函数区别,内联函数与宏的区别,以及内联函数和宏使用时的限制,并且阐述了内联函数在类中如何使用。
The transformation also provides an option to generate the function definition for an inline function in the header file below the class declaration. To activate this option, perform these steps
该转换还提供了另外一个选项:为一个在类声明下的头文件中的内联函数生成该函数的定义。
Unlike XAML, you have the option of either passing in a function or defining the converter inline as an anonymous function.
和XAML不同的是,既可以把一个函数作为参数传入,也可以通过一个内联的匿名函数来定义转换器。
Since the body of the callback is trivial here, we've defined the entire function inline as an anonymous subroutine.
由于这个回调程序体很小,所以我们将整个函数内嵌为一个匿名子例程来完成。
You can even invoke Inline at runtime by using the Inline->bind function.
您甚至可以使用Inline->bind bind函数,从而在程序运行时调用内联。
Type the command bind space: magic-space at any prompt, or add it to a startup file to bind the space key to the function magic-space, which expands history substitutions inline.
在任意提示符键入命令bindspace:magic - space,或者将其添加到一个启动文件,从而将空格键绑定到函数magic - space,该函数将扩展内联历史替换。
Always_inline tells GCC to inline the specified function regardless of whether optimization is enabled.
always_inline让GCC以内联方式处理指定的函数,无论是否启用了优化。
In this case, the lambda function remains nameless: It is created inline as a parameter to the array_filter function.
在本例中,lambda函数保持没有名字:它是在内侧作为array _ filter函数的参数来创建的。
We converted all style attributes to class attributes and defined CSS classes to perform the same function as the inline defined style attributes.
我们把所有的style属性转换为class属性,并定义了css类,当inline定义了style属性时,使用这个css类来执行相同的函数。
The resulting wrapper function is too long to present inline as a code example, but it seems to work pretty well.
最终得到的包装器函数由于太长而不作为内联代码例子显示,但它能够出色地执行。
应用推荐