On 8/6/21 11:42 PM, Richard Henderson wrote: > On 8/6/21 11:05 AM, Philippe Mathieu-Daudé wrote: >> +/* >> + * Helpers for implementing sets of trans_* functions. >> + * Defer the implementation of NAME to FUNC, with optional extra >> arguments. >> + */ >> +#define TRANS(NAME, FUNC, ...) \ >> + static bool trans_##NAME(DisasContext *ctx, arg_##NAME *a) \ >> + { return FUNC(ctx, a, __VA_ARGS__); } >> + > > I was thinking this could go in translate.h, for use with the other > files at some point.
Of course... Thanks!