|
24 | 24 | #pragma GCC diagnostic ignored "-Wattribute-alias" |
25 | 25 | #endif |
26 | 26 | #define ISO_FORWARD(fun) __attribute__((alias(#fun), used, visibility("default"), copy(fun))); |
27 | | -#define ISO_FORWARD0(fun, x) ISO_FORWARD(fun) |
28 | | -#define ISO_FORWARD1(fun, x) ISO_FORWARD(fun) |
29 | | -#define ISO_FORWARD2(fun, x, y) ISO_FORWARD(fun) |
| 27 | +#define ISO_FORWARD0(fun, x) ISO_FORWARD(fun) |
| 28 | +#define ISO_FORWARD1(fun, x) ISO_FORWARD(fun) |
| 29 | +#define ISO_FORWARD2(fun, x, y) ISO_FORWARD(fun) |
30 | 30 | #define ISO_FORWARD3(fun, x, y, z) ISO_FORWARD(fun) |
31 | 31 | #else |
32 | | -#define ISO_FORWARD0(fun, x) { fun(x); } |
33 | | -#define ISO_FORWARD1(fun, x) { return fun(x); } |
34 | | -#define ISO_FORWARD2(fun, x, y) { return fun(x, y); } |
35 | | -#define ISO_FORWARD3(fun, x, y, z) { return fun(x, y, z); } |
| 32 | +#define ISO_FORWARD0(fun, x) \ |
| 33 | + { fun(x); } |
| 34 | +#define ISO_FORWARD1(fun, x) \ |
| 35 | + { return fun(x); } |
| 36 | +#define ISO_FORWARD2(fun, x, y) \ |
| 37 | + { return fun(x, y); } |
| 38 | +#define ISO_FORWARD3(fun, x, y, z) \ |
| 39 | + { return fun(x, y, z); } |
36 | 40 | #endif |
0 commit comments