Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Edited by sciSpider v2.1 (sch jbop) (X_X)@==(Q_Q)@

...

The text inside a block of code commented-out using #if, #ifdef, or #ifndef must still consist of valid preprocessing tokens. This means that the characters " and ' must each be paired just as in real C code, and the pairs must not cross line boundaries. In particular, an apostrophe within a contracted word looks like the beginning of a character constant. ThereforeConsequently, natural-language comments and pseudocode should always be written between the comment delimiters /* and */ or following //.

...

Wiki Markup
\[[ISO/IEC 9899-:1999|AA. C References#ISO/IEC 9899-1999]\] Section 6.4.9, "Comments," and Section 6.10.1, "Conditional inclusion"
\[[MISRA 04|AA. C References#MISRA 04]\] Rule 2.2, "Source code shall only use /\* ... \*/ style comments," Rule 2.3, "The character sequence /\* shall not be used within a comment," and Rule 2.4, "Sections of code should not be "commented out"
\[[Summit 05|AA. C References#Summit 05]\] [Question 11.19|http://c-faq.com/ansi/ifdefsyntax.html]

...