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.在头文件中为一个内联函数所生成的代码。
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.
对于处理此类包装,外壳中的内联函数可能更为适合。
Back in Listing 6, you saw that we had a button whose action var was set to an inline function.
回到清单6,我们使用了一个按钮,它的action变量被设置为一个内联函数。
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所示。
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所示。
应用推荐