Internal macros as fns for debug
Hans-Peter Nilsson
hp@bitrange.com
Fri Dec 31 23:54:00 GMT 1999
On Tue, 21 Dec 1999, Doug Landauer wrote:
> > Have you (or anybody else) started doing this, at least for
> > rtl-accessors?
>
> I did something like this for most of the RTL and TREE accessors,
> though in a somewhat more awkward way (I didn't realize that
> surrounding the macro name in parens would prevent its expansion).
Thank you!
But sorry, I think this is a bit too awkward, judging from your snippets;
no ## are allowed, and there's too much fuzz around the macro definitions.
Perhaps just my nits, don't be offended.
> Is there a macro gcc developers use to mean "WHILE_DEBUGGING_GCC",
> that these things could be #ifdef'd under?
I don't think that's necessary for providing the functions as Geoff K
showed, and would generally be an extra encumberance.
brgds, H-P
More information about the Gcc
mailing list