Not every user action or command produces macro code.
并不是所有的用户操作或命令都会产生宏代码。
The UNO component model accesses are shown in bold in the final macro code in listing 2.
UNO组件模型的获取在清单2的最终宏代码中以粗体字显示。
This macro code expands out to the same two calls to extend shown in Listing 2 and Listing 3.
此宏代码扩大到要extend的两个调用,如清单2和清单3中所示。
Record button, the tasks you perform, the Windows and tools used, and so forth are recorded as macro code.
“录制”按钮时,所执行的任务、使用的窗口和工具等都作为宏代码录制下来。
For example, Part 2 of this series discussed how the Scheme macro system allows an easy mixing of macro and non-macro code.
例如,本系列教程的第2部分就讨论了scheme宏系统如何简单地混合使用宏代码和非宏代码。
When you record a macro, the environment tracks the elements you alter and the keys you press and generates macro code based on that input.
在录制巨集时,环境会追踪您改变的元件,以及您按下的按键,然后根据该输入来产生巨集程序码。
It's just a matter of deciding which features are implemented more easily and more clearly using macro expansions versus regular code.
问题只是决定哪些特性使用宏展开(而不是常规代码)来实现会更容易、更清晰。
Let's look at some of the code that you need to add to the macro to accomplish this task.
看看为了完成这个任务您所需要添加到宏的一些代码。
If you do not need to worry about the chance of the same code being assigned to more than one project, this macro is sufficient for your needs.
如果不需要考虑将相同代码分配到多个项目的情况,这个宏就足以满足您的需求。
You can use the macro editor to edit the content of the module to add the simple program code, and then you can save the new module with the macro.
您可以使用宏编辑器编辑模块内容,添加简单的程序代码,然后使用宏保存新的模块。
For example, you may want to introduce bindings in your macro that are accessible to the code you are transforming.
例如,可能希望在那些正在转换的代码中绑定这个宏。
The XyzLibrary project exports its code with the following handy macro.
XyzLibrary工程使用下列方便的宏导出它的代码。
It would be utilized as shown in this example, which USES the macro to determine the method of writing double quotes in ISO C99 portable code.
对wchar_t的利用如这个示例所示,使用宏确定在ISOC99可移植代码中写双引号的方法。
When you've defined your application class, place the following macro somewhere in your code.
定义了应用程序类之后,在代码中放上如下的宏。
After obtaining the pointer to the label, the code USES the g_assert macro to determine if the label is equal to NULL.
在得到标签的指针后,代码使用g_assert宏来确定标签是否等于NULL。
The inclusion of iostream and the definition of the EXPORT_API macro can be considered code-invariant parts of the file throughout the scope of the project.
其中包含了iostream和export_api宏的定义,在该项目的范围内,这些可以被看作是该文件中不变的代码部分。
Many of these return values are generated by a macro that sets the low word to a valid Microsoft Win32 error code and the high word to 8007.
许多这些返回值是由宏生成的,它们设置低位为有效的MicrosoftWin32错误码将高位设置为8007。
Open the macro editor and write your code.
打开宏编辑器,然后编写代码。
Since the macro expands to regular code anyway, you can always switch back to imperative programming if the declarative language doesn't suit your needs.
因为宏可以以任何方式展开常规代码,所以如果声明式语言不能满足需要,那么随时可以切换回命令式编程。
The trick to test coverage measurement is to use the coverage report to expose code that hasn't been tested, on a micro level and on a macro level.
测试覆盖度量的窍门是使用覆盖报告找出未经测试的代码,分别在微观和宏观两个级别。
This article reviews several kinds of macro languages and shows how you can use them to improve your code.
本文介绍了几种宏语言的方法,并介绍了如何改进代码。
To understand this piece of code, let's start with the for macro.
要理解这段代码的含义,让我们从 for 宏开始。
Our code generator should process the macro declarations, but pass through all non-macro portions unchanged. Therefore, the basic organization of the macro processor should look like this.
代码生成器应该处理宏的声明,但是对于所有非宏的部分都应该不加任何修改地传递。
The following code example shows how to write a macro that can extract all diagrams from a selected Rational Software Architect model, and then store them in a project.
下面的代码实例显示的是如何编写一个可以从一个选定的RationalSoftware Architect模型中获取所有图然后将它们储存在项目里的宏。
Now we just need a program to convert our macro into standard C. For this simple example, Perl is used because it can evaluate user code in a string, and its syntax is largely C-like.
现在我们只需要一个程序将这个宏转换成标准的C 语言就可以了。对于这个简单的例子来说,我们将使用Perl 来实现这个程序,因为它可以对字符串中的用户代码进行评测,其语法也与 C 语言非常类似。
In most cases it's probably faster to create a macro than it is to write VBA code.
在大多数情况下,它可能是更快地创建一个宏比编写VBA代码。
I am not aware of a single operation that a macro can do and VBA code can't.
我不知道一个单一的操作宏可以做和VBA代码不行。
The assertion and the extra logging code appear only when the DEBUG macro is set during development. These statements disappear in the final production build.
断言和额外的日志代码只出现在开发过程设置的DEBUG宏块中。这些声明不会出现在最终产品中。
Pause the macro recorder so no code is written to the recording macro (Not to be used from within a macro).
暂停宏记录器,使得不在记录宏中写入任何代码(不能从宏内使用)。
If this happens, you can manually edit the macro and, in most cases, create the necessary code yourself.
如果发生了这种情况,可以手动编辑宏,而大多数情况下,可以自己创建必需的代码。
应用推荐