Advertisement
Guest User

Untitled

a guest
Oct 15th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. Indenting preprocessor directives reduces the code readability, because it make preprocessor directives harder to spot.
  2.  
  3. Noncompliant Code Example
  4. void optimal()
  5. {
  6. #if INTEL /* Noncompliant - hard to spot */
  7. specificIntelStuff();
  8. #endif /* Noncompliant - hard to spot */
  9. }
  10. Compliant Solution
  11. void optimal()
  12. {
  13. #if INTEL /* Compliant */
  14. specificIntelStuff();
  15. #endif /* Compliant */
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement