www.delorie.com/gnu/docs/gcc/cpp_26.html   search  
 
Buy the book!


The C Preprocessor

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.9 Macro Pitfalls

In this section we describe some special rules that apply to macros and macro expansion, and point out certain cases in which the rules have counter-intuitive consequences that you must watch out for.

3.9.1 Misnesting  
3.9.2 Operator Precedence Problems  
3.9.3 Swallowing the Semicolon  
3.9.4 Duplication of Side Effects  
3.9.5 Self-Referential Macros  
3.9.6 Argument Prescan  
3.9.7 Newlines in Arguments  


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003