All #include directives shall be placed at the top of the file, just below the introductory comments and revision history.
Macros 3.8 |
Arguments to macros shall not produce side-effects to the arguments themselves. |
Macro parameters shall be fully parenthesized. The entire macro shall also be enclosed in parenthesis. |
Macros shall not be used to change the nature of the language. |
A macro that produces executable code shall be written as a parameterized macro, even if no parameters are needed.
本文关键:[FW]C Coding Standards Quick Reference
相关方案
|