RFC: target macro->hook migration idea

DJ Delorie dj@redhat.com
Tue Jul 22 19:35:00 GMT 2003


> The macros specified to goto a label outside the macro (a problem
> discussed in projects/beginner.html) need redefining.

What I generally do is create a predicate, and have the macro
call it:

	#define GO_IF(ARG,L) if (legit_p(ARG)) goto L

I think it makes sense (to me at least) to use predicates for all the
goto-if macros.



More information about the Gcc mailing list