使得头文件安全的通用做法,是使用预处理器定义头文件保护符。
A common way to make headers safe USES the preprocessor to define a header guard.
也许没有问题,但你应该添加matrix_exports不预处理器定义出口。
Maybe not the problem, but you should add MATRIX_EXPORTS not EXPORTS to the preprocessor definitions.
它有一个很棒的特性:你可以向其XML解析器中增加自定义的预处理器。
One of the nice extras for instance is that you can add custom preprocessors to the XML parser.
在编写头文件之前,我们需要引入一些额外的预处理器设施。预处理器允许我们自定义变量。
Before we write our own header, we need to introduce some additional preprocessor facilities. The preprocessor lets us define our own variables.
为防止头文件被同一源文件多次包含而定义的预处理器变量。
The preprocessor variable defined to prevent a header from being included more than once in a single source file.
未定义的符号与预处理器指令一起使用。
A symbol that was not defined was used with a preprocessor directive.
不能将具有参数的预处理器宏用作值定义。
You cannot use preprocessor macros with arguments as value definitions.
正如其他的预处理器变量一样(第2.9.2 节),不可以使用NULL这个标识符给自定义的变量命名。
As with any preprocessor variable ( Section 2.9.2, p. 71) we should not use the name NULL for our own variables.
正如其他的预处理器变量一样(第2.9.2 节),不可以使用NULL这个标识符给自定义的变量命名。
As with any preprocessor variable ( Section 2.9.2, p. 71) we should not use the name NULL for our own variables.
应用推荐