Click here to Skip to main content
15,887,821 members
Articles / Programming Languages / C++

"if" with no code block parenthesis

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
17 Feb 2011CPOL 7.3K   1  
Whatever, I agree with you, it would be worse in C / C++ code using macros.Suppose you got a multiline macro like this:#define some_macro \ do_something_1(); \ do_something_2();And using this macro without parenthesis:if(...) some_macro;orfor(...) ...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
China China
Video game player & creator; Hardware geek & maker.

Comments and Discussions