This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: target macro->hook migration idea


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]