Re: problem with preprocessing

Stefan Seefeld <[email protected]> Mon, 16 Nov 2009 21:47:32 -0500
Newsgroups gmane.comp.documentation.synopsis
Message-ID <[email protected]>
On 11/16/2009 08:51 PM, Brian Hertz wrote:
> When running display-ptree on C code I get syntax errors for 
> preprocessor macros defined over multiple lines.  For example this works:
>
> #define MY_MACRO (a + b)
>
> but this does:
>
> #define MY_MACRO (a + \
>                                  b)
>
> Am I missing something?

The `display-ptree` tool only provides (very basic) parsing. It doesn't 
preprocess, and thus the above macro definitions won't be interpreted 
the way you expect. (The Synopsis Cpp or Cxx processors will handle both 
macro definitions just fine.)

Regards,
         Stefan

-- 

       ...ich hab' noch einen Koffer in Berlin...