I am not sure why ## was used in this macro, as w/o the string concatenation
the tokens are legal ANSI-C. Maybe to enable 'op' to be a macro itself? Anyway, with the ## concatenation Gcc 3.1's integrated `cpp' treats "=op(" as a single token vs. the three tokens it is.
This commit is contained in:
parent
5179fb1e79
commit
acb7650f5a
@ -201,7 +201,7 @@ tsunami_check_abort(void)
|
||||
tsunami_check_abort(); \
|
||||
return ~0; \
|
||||
} \
|
||||
data = ##op##(va); \
|
||||
data = op(va); \
|
||||
if (tsunami_check_abort()) \
|
||||
return ~0; \
|
||||
return data; \
|
||||
@ -213,7 +213,7 @@ tsunami_check_abort(void)
|
||||
tsunami_clear_abort(); \
|
||||
if (badaddr((caddr_t)va, width)) \
|
||||
return; \
|
||||
##op##(va, data); \
|
||||
op(va, data); \
|
||||
tsunami_check_abort(); \
|
||||
} while (0)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user