清单9给出宏定义。
使用宏定义的屏幕识别。
清单7给出的宏定义使用这些函数定义了算术符号。
Listing 7 shows the macro definition to define math symbols using these functions.
注意,RUN_ALL_TESTS自动地探测并运行用test宏定义的所有测试。
Note that RUN_ALL_TESTS automatically detects and runs all the tests defined using the test macro.
然后,它存储一个对PDOM中的单元文件的引用以及对所包含的指令和宏定义的其他引用。
Then, it stores a reference to the unit's file in the PDOM, along with references to the included directives and macro definitions.
清单10是前面的宏调用的宏定义(所有带webserver:前缀的函数是web服务器提供的假想函数)。
Listing 10 is what the macro definition for the previous macro invocation might look like (all functions prefixed with webserver: are hypothetical functions provided by the web server).
在这个宏执行时,它按照以下形式将my - if表达式与模板进行匹配(换句话说,将宏调用与宏定义模式进行匹配)。
When this macro executes, it will match the my-if expression up to the template like this (in other words, matching a macro invocation to a macro definition pattern).
如果在首次包含本库头文件之前用户未显式定义该宏,则缺省为20。
Defaults to 20 if not explicitly defined by the user before inclusion of the first library header.
在HelperMacros . h中定义的CPPUNIT _ test_suite宏可以简化创建测试套件并在其中添加测试的流程。
The CPPUNIT_TEST_SUITE macro, defined in HelperMacros.h, simplifies creating a test suite and adding individual tests to it.
两者结合使用可方便地定义新语句,无需扩展语法,也无需使用类似宏的元编程工具。
A joint use of both features facilitates the definition of new statements without extending the syntax and without using macro-like meta-programming facilities.
一个配置文件(称为hats宏)定义主机应用程序屏幕必需的数据。
A configuration file (called a HATS macro) defines the data that is required from the screens of the host application.
如果是宏,将按定义屏幕时的顺序选中后续屏幕。
In the case of macros, the next screens are checked in the order that they are defined.
在Solaris/OpenSolaris 上,可以使用 /usr/include/sys/sdt.h中的宏来定义探测。
On Solaris/OpenSolaris you can define probes using the macros in /usr/include/sys/sdt.h.
在宏内开头定义DATABASE变量告诉它要连接到哪一个数据库。
Define a database variable initially within the macro to tell it which database to connect to.
outline函数由 SSAX:make-parser宏生成。允许定义几种事件类型。
The outline function is generated with the SSAX:make-parser macro, which allows the definition of several event types.
Velocity的一个主要特性是能够很容易地定义宏,称为Velocimacros。
One main feature of Velocity is its ability to easily define macros, called Velocimacros.
同样,也可以创建其他标准宏来使用样板中定义的变量。
Likewise, other standard macros can be created which make use of variables defined in the boilerplate.
我们还定义了宏inbufsiz,它是在读取输入时用作缓冲区的字符数组的大小。
We also define a macro INBUFSIZ, which is the size of a character array used as a buffer while reading the input.
如果引入的变量名正好是一个宏中以前定义过的,那么就会覆盖绑定。
Accidentally overwriting bindings by introducing a variable name that was previously defined in a macro.
探测宏的名称取决于您定义的探测名。
The format of the probe macros follows the probe names you defined.
事实上,方法定义——def——仅仅是Ruby的宏。
In fact, method definitions — def — are no more than Ruby macros.
使用宏 YYLLOC_DEFAULT(请参看Bison文档 中默认的定义),Bison可以计算出某个表达式的位置。
Together with the macro YYLLOC_DEFAULT (see the Bison documentation for the default definition), Bison calculates the location of an expression.
包含文件(或者头文件)定义了在操作系统中或特定的库中使用的常量、宏以及其他结构。
Include files (or header files) define constants, macros, and other structures used in the operating system or in a particular library.
不需要通过 read_inheritable_attribute宏来使用属性,因为这是ActiveRecord定义的类实例变量。
There's no need to go through the read_inheritable_attribute macro to use attributes because these are class instance variables defined by ActiveRecord.
在这些寄存器的 #define宏前面,还应该定义另外一个宏,它用来说明 ISR 是在模拟模式中运行还是在原来的中断上下文中运行的。
On top of these register #define macros, you should also define another macro that dictates whether the ISR will run in simulation mode or in the original interrupt context. For example
您可能会定义一些宏,例如Quantify和QUANTIFYOPTIONS,来指定完整的路径和Quantify的选项。
You may define macros such as Quantify and QUANTIFYOPTIONS to specify full paths and options to Quantify.
清单3包括了必须的模块头(它定义了模块的API、类型和宏)。
Listing 3 includes the necessary module header (which defines the module APIs, types, and macros).
定义了应用程序类之后,在代码中放上如下的宏。
When you've defined your application class, place the following macro somewhere in your code.
它还可以读取宏编码语言,从而允许实现更强大的自定义。
It can also read a macro-coding language that allows more powerful customizations. The language follows this basic format.
XyzLibrary工程使用一个APIENTRY宏,这个宏在"WinDef.h"这个头文件里被定义为__stdcall。
The XyzLibrary project uses the APIENTRY macro, which is defined as __stdcall in the "WinDef.h" header file.
应用推荐