home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,415 of 2,753   
   Hans-Peter Diettrich to All   
   Preprocessing ##   
   13 May 17 08:49:36   
   
   From: DrDiettrich1@netscape.net   
      
   How is the C preprocessor assumed to handle the ## concatenation operator?   
      
   In the Windows headers I found macros like   
      #define foo(x) bar(##baz(x))   
   where an expansion into ... (baz ... doesn't make sense, because "(baz"   
   is not a valid preprocessor token. Can somebody explain the meaning and   
   handling of such constructs?   
      
   DoDi [I would guess that some macro between ( and ## expanded to   
   nothing.  Or it could just be one of those text editing errors. -John]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca