我正在使用像C++这样的C++阅读它
#define max(a,b) (a > b ? a : b)
可以导致"双重评估".有人能给我一个例子,说明何时进行双重评估以及为什么它会变坏?
PS:令人惊讶的是,除了在Clojure中的一个例子(我无法理解)之外,我在google搜索时找不到任何详细的解释.
c++ macros preprocessor-directive
c++ ×1
macros ×1
preprocessor-directive ×1