Parentheses in macro bodies 34 pitfalls of macros 34

Info icon This preview shows page 83. Sign up to view the full content.

parentheses in macro bodies . . . . . . . . . . . . . . . . . . . 34 pitfalls of macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 predefined macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 predefined macros, system-specific . . . . . . . . . . . . . 31 predicates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 preprocessing directives . . . . . . . . . . . . . . . . . . . . . . . . . 6 preprocessing numbers . . . . . . . . . . . . . . . . . . . . . . . . . . 5 preprocessing tokens . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 prescan of macro arguments . . . . . . . . . . . . . . . . . . . 37 problems with macros . . . . . . . . . . . . . . . . . . . . . . . . . 34 punctuators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 R redefining macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 repeated inclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 reporting errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 reporting warnings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 reserved namespace . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 S self-reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 semicolons (after macro calls) . . . . . . . . . . . . . . . . . . 35 side effects (in macro arguments) . . . . . . . . . . . . . . 36 standard predefined macros. . . . . . . . . . . . . . . . . . . . 21 string constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 string literals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 stringification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 symbolic constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 system header files . . . . . . . . . . . . . . . . . . . . . . . . . . 7 , 13 system-specific predefined macros . . . . . . . . . . . . . . 31 T testing predicates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 token concatenation . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 token pasting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 tokens . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 trigraphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 U undefining macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 unsafe macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 V variable number of arguments . . . . . . . . . . . . . . . . . . 19 variadic macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 W wrapper #ifndef . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 wrapper headers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Image of page 83
This is the end of the preview. Sign up to access the rest of the document.
  • Summer '13
  • Noone
  • GCC, C preprocessor

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern