> From: bas...@starynkevitch.net > On Tue, 10 May 2011 17:33:57 +0200 > Michael T wrote: > > I was wondering if it is possible to improve the debugging information > > generated by gcc when resolving C macros? Just as an example, when I > > preprocessed the following C file: [...] > I am not a standard guru, but in my naive view this counts as one > single logical line (because backslash newline is handled by > preprocessing), so expansion of that macro invocation should be one > line also. > > Besides, I believe that there are lots of actual C code which depends > upon that behavior. Code like > #define my_fatal_at(Msg,Line) do { \ > printf ("%s:%d fatal error: %s\n", __FILE__, Line, Msg); \ > abort (); \ > } while(0); [...]
Sadly that sounds rather convincing. Thanks for the answer and sorry for the noise. Regards, Michael