Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
19.4 do while(0)
#3
The main issue here is example number 2, where rule 19.4 encourages using do-while-zero statements in macros, and thereby effectively disabling compiler errors for violations against rule 14.9.
Example number 1 was just posted to illustrate another obscure and far less frequent usage of do-while-zero.

Btw, the macro should of course have '\' symbols at each line, just as the macro example in rule 19.4.
<t></t>
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)