...带参数) 8 1、类对象宏定义 类对象宏定义是一种最简单的宏定义,其一般形 式为: #define 宏名 宏主体 其中: 宏名(macro name)按标识符规则确定。 习惯上宏名用大写字母表示但这不是规定,可 用小写字母。
基于24个网页-相关网页
在圆括号中的是正在使用的其他符号,而不是宏名本身(在这个例子中没有宏名)。
Within the parentheses are any other macro-specific symbols being used other than the macro name itself (there are none in this case).
健康的宏可以安全地在任何地方使用,不必担心与现有的变量名冲突。
Hygienic macros can be safely used anywhere without fear of stomping on existing variable names.
如果引入的变量名正好是一个宏中以前定义过的,那么就会覆盖绑定。
Accidentally overwriting bindings by introducing a variable name that was previously defined in a macro.
应用推荐