1

A12.3 Macro Definition and Expansion

A control line of the form
#define identifier token-sequence
causes the preprocessor to replace subsequent instances of the identifier with the given
sequence of tokens; leading and trailing white space around the token sequence is dis-
carded. A second #define for the same identifier is erroneous unless the second token
sequence is identical to the first, where all white space separations are taken to be
equivalent

這段其中有一個小段,我看了許久才知道作者想要表達什麼,
A second #define for the same identifier is erroneous unless the second token
sequence is identical to the first

#define A 123
#define A 1234 <<<==== warning message

相关文章:

  • 2021-09-01
  • 2021-08-07
  • 2022-12-23
  • 2021-08-16
  • 2022-12-23
  • 2022-02-05
  • 2021-12-06
  • 2021-11-07
猜你喜欢
  • 2022-12-23
  • 2021-09-28
  • 2021-07-13
  • 2021-09-15
  • 2021-06-08
  • 2022-01-29
  • 2021-12-12
相关资源
相似解决方案