另一个常见的调试技术是使用NDEBUG预处理变量以及assert(断言)预处理宏(preprocessor macro)。assert宏是在cassert头文件中定义的,所有使用assert的文件都必须包含这个头文件。
基于8个网页-相关网页
macro preprocessor 宏预处理程序 ; 宏预处理机
More information about C preprocessor macro programming is available in the CPP manual (see the Resources section for a link).
更多有关 C 预处理器宏编程的内容可以在 CPP 手册中看到(请参阅 参考资料 一节中的链接)。
Since the % character is used extensively by the macro preprocessor, you should ensure that both the signed and unsigned modulo operators are followed by white space wherever they appear.
因为%被宏预处理器广泛使用,你要确保有符号或无符号求余运算符应该紧跟着空格。
In the process, all preprocessor directives are carried out, macro expansions are performed, and comments are removed.
在此过程中,执行所有的预处理器指令,执行宏展开,并移除注释。
应用推荐