清单2演示执行此操作的宏。
还可以通过扩展 BOOST_CHECK 宏执行定制的断言检查。
You can also extend the BOOST_CHECK macro to perform custom predicate support.
更具体地说,它是在宏展开时执行给定的操作,在Scheme系统中宏展开与编译并不总是同时进行的。
More specifically, it will perform the given operation at macro-expansion time, which is not always the same as compile time in Scheme systems.
应用推荐