revert between 56095 -> 55830 in arch
[AROS.git] / rom / filesys / SFS / FS / req_protos.h
blob12eacdd5ab3f06842444ab679b3461c179445799
1 #ifndef __AROS__
2 #define AROS_PP_VARIADIC_CAST2IPTR(x) x
3 #endif
5 LONG requestArgs(UBYTE *title, UBYTE *fmt, UBYTE *gads, APTR params);
6 LONG reqArgs(UBYTE *fmt, UBYTE *gads, APTR params);
7 LONG req_unusualArgs(UBYTE *fmt, APTR params);
8 void dreqArgs(UBYTE *fmt, APTR params);
10 #define request(title, fmt, gads, ...) \
11 ({ \
12 IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
13 requestArgs(title, fmt, gads, __args); \
16 #define req(fmt, gads, ...) \
17 ({ \
18 IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
19 reqArgs(fmt, gads, __args); \
22 #define req_unusual(fmt, ...) \
23 ({ \
24 IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
25 req_unusualArgs(fmt, __args); \
28 #define dreq(fmt, ...) \
29 ({ \
30 IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
31 dreqArgs(fmt, __args); \