2 Copyright © 1995-2002, The AROS Development Team. All rights reserved.
5 Desc: Macro's to make calling arexx library querying functions portable
9 #ifndef AROS_REXXCALL_H
10 #define AROS_REXXCALL_H
12 /* Some macro's to make ARexx portable to non-m68k platforms */
13 #define RexxCallQueryLibFunc(rexxmsg, libbase, offset, retargstringptr) \
15 int _offset=abs(offset)/6; \
16 AROS_LC2(ULONG, RexxCallQueryLibFunc, \
17 AROS_LCA(struct RexxMsg *, rexxmsg, A0), \
18 AROS_LCA(STRPTR *, retargstringptr, A1), \
19 struct Library *, libbase, _offset, rexxcall); \
22 #define AROS_AREXXLIBQUERYFUNC(f,m,lt,l,o,p) \
24 AROS_LCA(struct RexxMsg *, m, A0), \
25 AROS_LCA(STRPTR *, _retargstringptr, A1), \
28 #warning FIXME: retargstringptr has to be returned in A0 also, asm has to be added
29 #define ReturnRexxQuery(rc,arg) \
30 *_retargstringptr = arg; \