target/sparc: Allow TRANS macro with no extra arguments
Use ## to drop the preceding comma if __VA_ARGS__ is empty. Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
c8e5aed246
commit
b7cd0a1821
1 changed files with 1 additions and 1 deletions
|
|
@ -2487,7 +2487,7 @@ static int extract_qfpreg(DisasContext *dc, int x)
|
|||
|
||||
#define TRANS(NAME, AVAIL, FUNC, ...) \
|
||||
static bool trans_##NAME(DisasContext *dc, arg_##NAME *a) \
|
||||
{ return avail_##AVAIL(dc) && FUNC(dc, __VA_ARGS__); }
|
||||
{ return avail_##AVAIL(dc) && FUNC(dc, ## __VA_ARGS__); }
|
||||
|
||||
#define avail_ALL(C) true
|
||||
#ifdef TARGET_SPARC64
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue