#ifndef DEFINES_EXEC_PROTOS_H
#define DEFINES_EXEC_PROTOS_H

/*
    *** Automatically generated from 'exec.conf'. Edits will be lost. ***
    Copyright © 1995-2005, The AROS Development Team. All rights reserved.
*/

/*
    Desc: Defines for exec
*/

#include <aros/libcall.h>
#include <exec/types.h>
#include <aros/preprocessor/variadic/cast2iptr.hpp>


#define __Supervisor_WB(__SysBase, __arg1) \
        AROS_LC1(ULONG, Supervisor, \
                  AROS_LCA(ULONG_FUNC,(__arg1),A5), \
        struct ExecBase *, (__SysBase), 5, Exec)

#define Supervisor(arg1) \
    __Supervisor_WB(SysBase, (arg1))

#define __PrepareContext_WB(__SysBase, __arg1, __arg2, __arg3, __arg4) \
        AROS_LC4(BOOL, PrepareContext, \
                  AROS_LCA(struct Task *,(__arg1),A0), \
                  AROS_LCA(APTR,(__arg2),A1), \
                  AROS_LCA(APTR,(__arg3),A2), \
                  AROS_LCA(struct TagItem *,(__arg4),A3), \
        struct ExecBase *, (__SysBase), 6, Exec)

#define PrepareContext(arg1, arg2, arg3, arg4) \
    __PrepareContext_WB(SysBase, (arg1), (arg2), (arg3), (arg4))

#if !defined(NO_INLINE_STDARG) && !defined(EXEC_NO_INLINE_STDARG)
#define PrepareContextTags(arg1, arg2, arg3, ...) \
({ \
    IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
    PrepareContext((arg1), (arg2), (arg3), (struct TagItem *)__args); \
})
#endif /* !NO_INLINE_STDARG */

#define __Reschedule_WB(__SysBase, __arg1) \
        AROS_LC1(void, Reschedule, \
                  AROS_LCA(struct Task *,(__arg1),A0), \
        struct ExecBase *, (__SysBase), 8, Exec)

#define Reschedule(arg1) \
    __Reschedule_WB(SysBase, (arg1))

#define __Switch_WB(__SysBase) \
        AROS_LC0(void, Switch, \
        struct ExecBase *, (__SysBase), 9, Exec)

#define Switch() \
    __Switch_WB(SysBase)

#define __Dispatch_WB(__SysBase) \
        AROS_LC0(void, Dispatch, \
        struct ExecBase *, (__SysBase), 10, Exec)

#define Dispatch() \
    __Dispatch_WB(SysBase)

#define __Exception_WB(__SysBase) \
        AROS_LC0(void, Exception, \
        struct ExecBase *, (__SysBase), 11, Exec)

#define Exception() \
    __Exception_WB(SysBase)

#define __InitCode_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(void, InitCode, \
                  AROS_LCA(ULONG,(__arg1),D0), \
                  AROS_LCA(ULONG,(__arg2),D1), \
        struct ExecBase *, (__SysBase), 12, Exec)

#define InitCode(arg1, arg2) \
    __InitCode_WB(SysBase, (arg1), (arg2))

#define __InitStruct_WB(__SysBase, __arg1, __arg2, __arg3) \
        AROS_LC3(void, InitStruct, \
                  AROS_LCA(APTR,(__arg1),A1), \
                  AROS_LCA(APTR,(__arg2),A2), \
                  AROS_LCA(ULONG,(__arg3),D0), \
        struct ExecBase *, (__SysBase), 13, Exec)

#define InitStruct(arg1, arg2, arg3) \
    __InitStruct_WB(SysBase, (arg1), (arg2), (arg3))

#define __MakeLibrary_WB(__SysBase, __arg1, __arg2, __arg3, __arg4, __arg5) \
        AROS_LC5(struct Library *, MakeLibrary, \
                  AROS_LCA(APTR,(__arg1),A0), \
                  AROS_LCA(APTR,(__arg2),A1), \
                  AROS_LCA(ULONG_FUNC,(__arg3),A2), \
                  AROS_LCA(ULONG,(__arg4),D0), \
                  AROS_LCA(BPTR,(__arg5),D1), \
        struct ExecBase *, (__SysBase), 14, Exec)

#define MakeLibrary(arg1, arg2, arg3, arg4, arg5) \
    __MakeLibrary_WB(SysBase, (arg1), (arg2), (arg3), (arg4), (arg5))

#define __MakeFunctions_WB(__SysBase, __arg1, __arg2, __arg3) \
        AROS_LC3(ULONG, MakeFunctions, \
                  AROS_LCA(APTR,(__arg1),A0), \
                  AROS_LCA(APTR,(__arg2),A1), \
                  AROS_LCA(APTR,(__arg3),A2), \
        struct ExecBase *, (__SysBase), 15, Exec)

#define MakeFunctions(arg1, arg2, arg3) \
    __MakeFunctions_WB(SysBase, (arg1), (arg2), (arg3))

#define __FindResident_WB(__SysBase, __arg1) \
        AROS_LC1(struct Resident *, FindResident, \
                  AROS_LCA(const UBYTE *,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 16, Exec)

#define FindResident(arg1) \
    __FindResident_WB(SysBase, (arg1))

#define __InitResident_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(APTR, InitResident, \
                  AROS_LCA(struct Resident *,(__arg1),A1), \
                  AROS_LCA(BPTR,(__arg2),D1), \
        struct ExecBase *, (__SysBase), 17, Exec)

#define InitResident(arg1, arg2) \
    __InitResident_WB(SysBase, (arg1), (arg2))

#define __Alert_WB(__SysBase, __arg1) \
        AROS_LC1(void, Alert, \
                  AROS_LCA(ULONG,(__arg1),D7), \
        struct ExecBase *, (__SysBase), 18, Exec)

#define Alert(arg1) \
    __Alert_WB(SysBase, (arg1))

#define __Debug_WB(__SysBase, __arg1) \
        AROS_LC1(void, Debug, \
                  AROS_LCA(unsigned long,(__arg1),D0), \
        struct ExecBase *, (__SysBase), 19, Exec)

#define Debug(arg1) \
    __Debug_WB(SysBase, (arg1))

#define __Disable_WB(__SysBase) \
        AROS_LC0(void, Disable, \
        struct ExecBase *, (__SysBase), 20, Exec)

#define Disable() \
    __Disable_WB(SysBase)

#define __Enable_WB(__SysBase) \
        AROS_LC0(void, Enable, \
        struct ExecBase *, (__SysBase), 21, Exec)

#define Enable() \
    __Enable_WB(SysBase)

#define __Forbid_WB(__SysBase) \
        AROS_LC0(void, Forbid, \
        struct ExecBase *, (__SysBase), 22, Exec)

#define Forbid() \
    __Forbid_WB(SysBase)

#define __Permit_WB(__SysBase) \
        AROS_LC0(void, Permit, \
        struct ExecBase *, (__SysBase), 23, Exec)

#define Permit() \
    __Permit_WB(SysBase)

#define __SetSR_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(ULONG, SetSR, \
                  AROS_LCA(ULONG,(__arg1),D0), \
                  AROS_LCA(ULONG,(__arg2),D1), \
        struct ExecBase *, (__SysBase), 24, Exec)

#define SetSR(arg1, arg2) \
    __SetSR_WB(SysBase, (arg1), (arg2))

#define __SuperState_WB(__SysBase) \
        AROS_LC0(APTR, SuperState, \
        struct ExecBase *, (__SysBase), 25, Exec)

#define SuperState() \
    __SuperState_WB(SysBase)

#define __UserState_WB(__SysBase, __arg1) \
        AROS_LC1(void, UserState, \
                  AROS_LCA(APTR,(__arg1),D0), \
        struct ExecBase *, (__SysBase), 26, Exec)

#define UserState(arg1) \
    __UserState_WB(SysBase, (arg1))

#define __SetIntVector_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(struct Interrupt *, SetIntVector, \
                  AROS_LCA(ULONG,(__arg1),D0), \
                  AROS_LCA(struct Interrupt *,(__arg2),A1), \
        struct ExecBase *, (__SysBase), 27, Exec)

#define SetIntVector(arg1, arg2) \
    __SetIntVector_WB(SysBase, (arg1), (arg2))

#define __AddIntServer_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(void, AddIntServer, \
                  AROS_LCA(ULONG,(__arg1),D0), \
                  AROS_LCA(struct Interrupt *,(__arg2),A1), \
        struct ExecBase *, (__SysBase), 28, Exec)

#define AddIntServer(arg1, arg2) \
    __AddIntServer_WB(SysBase, (arg1), (arg2))

#define __RemIntServer_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(void, RemIntServer, \
                  AROS_LCA(ULONG,(__arg1),D0), \
                  AROS_LCA(struct Interrupt *,(__arg2),A1), \
        struct ExecBase *, (__SysBase), 29, Exec)

#define RemIntServer(arg1, arg2) \
    __RemIntServer_WB(SysBase, (arg1), (arg2))

#define __Cause_WB(__SysBase, __arg1) \
        AROS_LC1(void, Cause, \
                  AROS_LCA(struct Interrupt *,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 30, Exec)

#define Cause(arg1) \
    __Cause_WB(SysBase, (arg1))

#define __Allocate_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(APTR, Allocate, \
                  AROS_LCA(struct MemHeader *,(__arg1),A0), \
                  AROS_LCA(ULONG,(__arg2),D0), \
        struct ExecBase *, (__SysBase), 31, Exec)

#define Allocate(arg1, arg2) \
    __Allocate_WB(SysBase, (arg1), (arg2))

#define __Deallocate_WB(__SysBase, __arg1, __arg2, __arg3) \
        AROS_LC3(void, Deallocate, \
                  AROS_LCA(struct MemHeader *,(__arg1),A0), \
                  AROS_LCA(APTR,(__arg2),A1), \
                  AROS_LCA(ULONG,(__arg3),D0), \
        struct ExecBase *, (__SysBase), 32, Exec)

#define Deallocate(arg1, arg2, arg3) \
    __Deallocate_WB(SysBase, (arg1), (arg2), (arg3))

#define __AllocMem_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(APTR, AllocMem, \
                  AROS_LCA(ULONG,(__arg1),D0), \
                  AROS_LCA(ULONG,(__arg2),D1), \
        struct ExecBase *, (__SysBase), 33, Exec)

#define AllocMem(arg1, arg2) \
    __AllocMem_WB(SysBase, (arg1), (arg2))

#define __AllocAbs_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(APTR, AllocAbs, \
                  AROS_LCA(ULONG,(__arg1),D0), \
                  AROS_LCA(APTR,(__arg2),D1), \
        struct ExecBase *, (__SysBase), 34, Exec)

#define AllocAbs(arg1, arg2) \
    __AllocAbs_WB(SysBase, (arg1), (arg2))

#define __FreeMem_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(void, FreeMem, \
                  AROS_LCA(APTR,(__arg1),A1), \
                  AROS_LCA(ULONG,(__arg2),D0), \
        struct ExecBase *, (__SysBase), 35, Exec)

#define FreeMem(arg1, arg2) \
    __FreeMem_WB(SysBase, (arg1), (arg2))

#define __AvailMem_WB(__SysBase, __arg1) \
        AROS_LC1(ULONG, AvailMem, \
                  AROS_LCA(ULONG,(__arg1),D1), \
        struct ExecBase *, (__SysBase), 36, Exec)

#define AvailMem(arg1) \
    __AvailMem_WB(SysBase, (arg1))

#define __AllocEntry_WB(__SysBase, __arg1) \
        AROS_LC1(struct MemList *, AllocEntry, \
                  AROS_LCA(struct MemList *,(__arg1),A0), \
        struct ExecBase *, (__SysBase), 37, Exec)

#define AllocEntry(arg1) \
    __AllocEntry_WB(SysBase, (arg1))

#define __FreeEntry_WB(__SysBase, __arg1) \
        AROS_LC1(void, FreeEntry, \
                  AROS_LCA(struct MemList *,(__arg1),A0), \
        struct ExecBase *, (__SysBase), 38, Exec)

#define FreeEntry(arg1) \
    __FreeEntry_WB(SysBase, (arg1))

#define __Insert_WB(__SysBase, __arg1, __arg2, __arg3) \
        AROS_LC3(void, Insert, \
                  AROS_LCA(struct List *,(__arg1),A0), \
                  AROS_LCA(struct Node *,(__arg2),A1), \
                  AROS_LCA(struct Node *,(__arg3),A2), \
        struct ExecBase *, (__SysBase), 39, Exec)

#define Insert(arg1, arg2, arg3) \
    __Insert_WB(SysBase, (arg1), (arg2), (arg3))

#define __AddHead_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(void, AddHead, \
                  AROS_LCA(struct List *,(__arg1),A0), \
                  AROS_LCA(struct Node *,(__arg2),A1), \
        struct ExecBase *, (__SysBase), 40, Exec)

#define AddHead(arg1, arg2) \
    __AddHead_WB(SysBase, (arg1), (arg2))

#define __AddTail_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(void, AddTail, \
                  AROS_LCA(struct List *,(__arg1),A0), \
                  AROS_LCA(struct Node *,(__arg2),A1), \
        struct ExecBase *, (__SysBase), 41, Exec)

#define AddTail(arg1, arg2) \
    __AddTail_WB(SysBase, (arg1), (arg2))

#define __Remove_WB(__SysBase, __arg1) \
        AROS_LC1(void, Remove, \
                  AROS_LCA(struct Node *,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 42, Exec)

#define Remove(arg1) \
    __Remove_WB(SysBase, (arg1))

#define __RemHead_WB(__SysBase, __arg1) \
        AROS_LC1(struct Node *, RemHead, \
                  AROS_LCA(struct List *,(__arg1),A0), \
        struct ExecBase *, (__SysBase), 43, Exec)

#define RemHead(arg1) \
    __RemHead_WB(SysBase, (arg1))

#define __RemTail_WB(__SysBase, __arg1) \
        AROS_LC1(struct Node *, RemTail, \
                  AROS_LCA(struct List *,(__arg1),A0), \
        struct ExecBase *, (__SysBase), 44, Exec)

#define RemTail(arg1) \
    __RemTail_WB(SysBase, (arg1))

#define __Enqueue_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(void, Enqueue, \
                  AROS_LCA(struct List *,(__arg1),A0), \
                  AROS_LCA(struct Node *,(__arg2),A1), \
        struct ExecBase *, (__SysBase), 45, Exec)

#define Enqueue(arg1, arg2) \
    __Enqueue_WB(SysBase, (arg1), (arg2))

#define __FindName_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(struct Node *, FindName, \
                  AROS_LCA(struct List *,(__arg1),A0), \
                  AROS_LCA(const UBYTE *,(__arg2),A1), \
        struct ExecBase *, (__SysBase), 46, Exec)

#define FindName(arg1, arg2) \
    __FindName_WB(SysBase, (arg1), (arg2))

#define __AddTask_WB(__SysBase, __arg1, __arg2, __arg3) \
        AROS_LC3(APTR, AddTask, \
                  AROS_LCA(struct Task *,(__arg1),A1), \
                  AROS_LCA(APTR,(__arg2),A2), \
                  AROS_LCA(APTR,(__arg3),A3), \
        struct ExecBase *, (__SysBase), 47, Exec)

#define AddTask(arg1, arg2, arg3) \
    __AddTask_WB(SysBase, (arg1), (arg2), (arg3))

#define __RemTask_WB(__SysBase, __arg1) \
        AROS_LC1(void, RemTask, \
                  AROS_LCA(struct Task *,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 48, Exec)

#define RemTask(arg1) \
    __RemTask_WB(SysBase, (arg1))

#define __FindTask_WB(__SysBase, __arg1) \
        AROS_LC1(struct Task *, FindTask, \
                  AROS_LCA(STRPTR,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 49, Exec)

#define FindTask(arg1) \
    __FindTask_WB(SysBase, (arg1))

#define __SetTaskPri_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(BYTE, SetTaskPri, \
                  AROS_LCA(struct Task *,(__arg1),A1), \
                  AROS_LCA(LONG,(__arg2),D0), \
        struct ExecBase *, (__SysBase), 50, Exec)

#define SetTaskPri(arg1, arg2) \
    __SetTaskPri_WB(SysBase, (arg1), (arg2))

#define __SetSignal_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(ULONG, SetSignal, \
                  AROS_LCA(ULONG,(__arg1),D0), \
                  AROS_LCA(ULONG,(__arg2),D1), \
        struct ExecBase *, (__SysBase), 51, Exec)

#define SetSignal(arg1, arg2) \
    __SetSignal_WB(SysBase, (arg1), (arg2))

#define __SetExcept_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(ULONG, SetExcept, \
                  AROS_LCA(ULONG,(__arg1),D0), \
                  AROS_LCA(ULONG,(__arg2),D1), \
        struct ExecBase *, (__SysBase), 52, Exec)

#define SetExcept(arg1, arg2) \
    __SetExcept_WB(SysBase, (arg1), (arg2))

#define __Wait_WB(__SysBase, __arg1) \
        AROS_LC1(ULONG, Wait, \
                  AROS_LCA(ULONG,(__arg1),D0), \
        struct ExecBase *, (__SysBase), 53, Exec)

#define Wait(arg1) \
    __Wait_WB(SysBase, (arg1))

#define __Signal_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(void, Signal, \
                  AROS_LCA(struct Task *,(__arg1),A1), \
                  AROS_LCA(ULONG,(__arg2),D0), \
        struct ExecBase *, (__SysBase), 54, Exec)

#define Signal(arg1, arg2) \
    __Signal_WB(SysBase, (arg1), (arg2))

#define __AllocSignal_WB(__SysBase, __arg1) \
        AROS_LC1(BYTE, AllocSignal, \
                  AROS_LCA(LONG,(__arg1),D0), \
        struct ExecBase *, (__SysBase), 55, Exec)

#define AllocSignal(arg1) \
    __AllocSignal_WB(SysBase, (arg1))

#define __FreeSignal_WB(__SysBase, __arg1) \
        AROS_LC1(void, FreeSignal, \
                  AROS_LCA(LONG,(__arg1),D0), \
        struct ExecBase *, (__SysBase), 56, Exec)

#define FreeSignal(arg1) \
    __FreeSignal_WB(SysBase, (arg1))

#define __AllocTrap_WB(__SysBase, __arg1) \
        AROS_LC1(LONG, AllocTrap, \
                  AROS_LCA(long,(__arg1),D0), \
        struct ExecBase *, (__SysBase), 57, Exec)

#define AllocTrap(arg1) \
    __AllocTrap_WB(SysBase, (arg1))

#define __FreeTrap_WB(__SysBase, __arg1) \
        AROS_LC1(void, FreeTrap, \
                  AROS_LCA(long,(__arg1),D0), \
        struct ExecBase *, (__SysBase), 58, Exec)

#define FreeTrap(arg1) \
    __FreeTrap_WB(SysBase, (arg1))

#define __AddPort_WB(__SysBase, __arg1) \
        AROS_LC1(void, AddPort, \
                  AROS_LCA(struct MsgPort *,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 59, Exec)

#define AddPort(arg1) \
    __AddPort_WB(SysBase, (arg1))

#define __RemPort_WB(__SysBase, __arg1) \
        AROS_LC1(void, RemPort, \
                  AROS_LCA(struct MsgPort *,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 60, Exec)

#define RemPort(arg1) \
    __RemPort_WB(SysBase, (arg1))

#define __PutMsg_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(void, PutMsg, \
                  AROS_LCA(struct MsgPort *,(__arg1),A0), \
                  AROS_LCA(struct Message *,(__arg2),A1), \
        struct ExecBase *, (__SysBase), 61, Exec)

#define PutMsg(arg1, arg2) \
    __PutMsg_WB(SysBase, (arg1), (arg2))

#define __GetMsg_WB(__SysBase, __arg1) \
        AROS_LC1(struct Message *, GetMsg, \
                  AROS_LCA(struct MsgPort *,(__arg1),A0), \
        struct ExecBase *, (__SysBase), 62, Exec)

#define GetMsg(arg1) \
    __GetMsg_WB(SysBase, (arg1))

#define __ReplyMsg_WB(__SysBase, __arg1) \
        AROS_LC1(void, ReplyMsg, \
                  AROS_LCA(struct Message *,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 63, Exec)

#define ReplyMsg(arg1) \
    __ReplyMsg_WB(SysBase, (arg1))

#define __WaitPort_WB(__SysBase, __arg1) \
        AROS_LC1(struct Message *, WaitPort, \
                  AROS_LCA(struct MsgPort *,(__arg1),A0), \
        struct ExecBase *, (__SysBase), 64, Exec)

#define WaitPort(arg1) \
    __WaitPort_WB(SysBase, (arg1))

#define __FindPort_WB(__SysBase, __arg1) \
        AROS_LC1(struct MsgPort *, FindPort, \
                  AROS_LCA(STRPTR,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 65, Exec)

#define FindPort(arg1) \
    __FindPort_WB(SysBase, (arg1))

#define __AddLibrary_WB(__SysBase, __arg1) \
        AROS_LC1(void, AddLibrary, \
                  AROS_LCA(struct Library *,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 66, Exec)

#define AddLibrary(arg1) \
    __AddLibrary_WB(SysBase, (arg1))

#define __RemLibrary_WB(__SysBase, __arg1) \
        AROS_LC1(void, RemLibrary, \
                  AROS_LCA(struct Library *,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 67, Exec)

#define RemLibrary(arg1) \
    __RemLibrary_WB(SysBase, (arg1))

#define __OldOpenLibrary_WB(__SysBase, __arg1) \
        AROS_LC1(struct Library *, OldOpenLibrary, \
                  AROS_LCA(UBYTE *,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 68, Exec)

#define OldOpenLibrary(arg1) \
    __OldOpenLibrary_WB(SysBase, (arg1))

#define __CloseLibrary_WB(__SysBase, __arg1) \
        AROS_LC1(void, CloseLibrary, \
                  AROS_LCA(struct Library *,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 69, Exec)

#define CloseLibrary(arg1) \
    __CloseLibrary_WB(SysBase, (arg1))

#define __SetFunction_WB(__SysBase, __arg1, __arg2, __arg3) \
        AROS_LC3(APTR, SetFunction, \
                  AROS_LCA(struct Library *,(__arg1),A1), \
                  AROS_LCA(LONG,(__arg2),A0), \
                  AROS_LCA(APTR,(__arg3),D0), \
        struct ExecBase *, (__SysBase), 70, Exec)

#define SetFunction(arg1, arg2, arg3) \
    __SetFunction_WB(SysBase, (arg1), (arg2), (arg3))

#define __SumLibrary_WB(__SysBase, __arg1) \
        AROS_LC1(void, SumLibrary, \
                  AROS_LCA(struct Library *,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 71, Exec)

#define SumLibrary(arg1) \
    __SumLibrary_WB(SysBase, (arg1))

#define __AddDevice_WB(__SysBase, __arg1) \
        AROS_LC1(void, AddDevice, \
                  AROS_LCA(struct Device *,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 72, Exec)

#define AddDevice(arg1) \
    __AddDevice_WB(SysBase, (arg1))

#define __RemDevice_WB(__SysBase, __arg1) \
        AROS_LC1(void, RemDevice, \
                  AROS_LCA(struct Device *,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 73, Exec)

#define RemDevice(arg1) \
    __RemDevice_WB(SysBase, (arg1))

#define __OpenDevice_WB(__SysBase, __arg1, __arg2, __arg3, __arg4) \
        AROS_LC4(BYTE, OpenDevice, \
                  AROS_LCA(CONST_STRPTR,(__arg1),A0), \
                  AROS_LCA(ULONG,(__arg2),D0), \
                  AROS_LCA(struct IORequest *,(__arg3),A1), \
                  AROS_LCA(ULONG,(__arg4),D1), \
        struct ExecBase *, (__SysBase), 74, Exec)

#define OpenDevice(arg1, arg2, arg3, arg4) \
    __OpenDevice_WB(SysBase, (arg1), (arg2), (arg3), (arg4))

#define __CloseDevice_WB(__SysBase, __arg1) \
        AROS_LC1(void, CloseDevice, \
                  AROS_LCA(struct IORequest *,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 75, Exec)

#define CloseDevice(arg1) \
    __CloseDevice_WB(SysBase, (arg1))

#define __DoIO_WB(__SysBase, __arg1) \
        AROS_LC1(BYTE, DoIO, \
                  AROS_LCA(struct IORequest *,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 76, Exec)

#define DoIO(arg1) \
    __DoIO_WB(SysBase, (arg1))

#define __SendIO_WB(__SysBase, __arg1) \
        AROS_LC1(void, SendIO, \
                  AROS_LCA(struct IORequest *,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 77, Exec)

#define SendIO(arg1) \
    __SendIO_WB(SysBase, (arg1))

#define __CheckIO_WB(__SysBase, __arg1) \
        AROS_LC1(struct IORequest *, CheckIO, \
                  AROS_LCA(struct IORequest *,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 78, Exec)

#define CheckIO(arg1) \
    __CheckIO_WB(SysBase, (arg1))

#define __WaitIO_WB(__SysBase, __arg1) \
        AROS_LC1(BYTE, WaitIO, \
                  AROS_LCA(struct IORequest *,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 79, Exec)

#define WaitIO(arg1) \
    __WaitIO_WB(SysBase, (arg1))

#define __AbortIO_WB(__SysBase, __arg1) \
        AROS_LC1(LONG, AbortIO, \
                  AROS_LCA(struct IORequest *,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 80, Exec)

#define AbortIO(arg1) \
    __AbortIO_WB(SysBase, (arg1))

#define __AddResource_WB(__SysBase, __arg1) \
        AROS_LC1(void, AddResource, \
                  AROS_LCA(APTR,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 81, Exec)

#define AddResource(arg1) \
    __AddResource_WB(SysBase, (arg1))

#define __RemResource_WB(__SysBase, __arg1) \
        AROS_LC1(void, RemResource, \
                  AROS_LCA(APTR,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 82, Exec)

#define RemResource(arg1) \
    __RemResource_WB(SysBase, (arg1))

#define __OpenResource_WB(__SysBase, __arg1) \
        AROS_LC1(APTR, OpenResource, \
                  AROS_LCA(CONST_STRPTR,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 83, Exec)

#define OpenResource(arg1) \
    __OpenResource_WB(SysBase, (arg1))

#define __RawIOInit_WB(__SysBase) \
        AROS_LC0(void, RawIOInit, \
        struct ExecBase *, (__SysBase), 84, Exec)

#define RawIOInit() \
    __RawIOInit_WB(SysBase)

#define __RawMayGetChar_WB(__SysBase) \
        AROS_LC0(LONG, RawMayGetChar, \
        struct ExecBase *, (__SysBase), 85, Exec)

#define RawMayGetChar() \
    __RawMayGetChar_WB(SysBase)

#define __RawPutChar_WB(__SysBase, __arg1) \
        AROS_LC1(void, RawPutChar, \
                  AROS_LCA(UBYTE,(__arg1),D0), \
        struct ExecBase *, (__SysBase), 86, Exec)

#define RawPutChar(arg1) \
    __RawPutChar_WB(SysBase, (arg1))

#define __RawDoFmt_WB(__SysBase, __arg1, __arg2, __arg3, __arg4) \
        AROS_LC4(APTR, RawDoFmt, \
                  AROS_LCA(CONST_STRPTR,(__arg1),A0), \
                  AROS_LCA(APTR,(__arg2),A1), \
                  AROS_LCA(VOID_FUNC,(__arg3),A2), \
                  AROS_LCA(APTR,(__arg4),A3), \
        struct ExecBase *, (__SysBase), 87, Exec)

#define RawDoFmt(arg1, arg2, arg3, arg4) \
    __RawDoFmt_WB(SysBase, (arg1), (arg2), (arg3), (arg4))

#define __GetCC_WB(__SysBase) \
        AROS_LC0(UWORD, GetCC, \
        struct ExecBase *, (__SysBase), 88, Exec)

#define GetCC() \
    __GetCC_WB(SysBase)

#define __TypeOfMem_WB(__SysBase, __arg1) \
        AROS_LC1(ULONG, TypeOfMem, \
                  AROS_LCA(APTR,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 89, Exec)

#define TypeOfMem(arg1) \
    __TypeOfMem_WB(SysBase, (arg1))

#define __Procure_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(ULONG, Procure, \
                  AROS_LCA(struct SignalSemaphore *,(__arg1),A0), \
                  AROS_LCA(struct SemaphoreMessage *,(__arg2),A1), \
        struct ExecBase *, (__SysBase), 90, Exec)

#define Procure(arg1, arg2) \
    __Procure_WB(SysBase, (arg1), (arg2))

#define __Vacate_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(void, Vacate, \
                  AROS_LCA(struct SignalSemaphore *,(__arg1),A0), \
                  AROS_LCA(struct SemaphoreMessage *,(__arg2),A1), \
        struct ExecBase *, (__SysBase), 91, Exec)

#define Vacate(arg1, arg2) \
    __Vacate_WB(SysBase, (arg1), (arg2))

#define __OpenLibrary_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(struct Library *, OpenLibrary, \
                  AROS_LCA(CONST_STRPTR,(__arg1),A1), \
                  AROS_LCA(ULONG,(__arg2),D0), \
        struct ExecBase *, (__SysBase), 92, Exec)

#define OpenLibrary(arg1, arg2) \
    __OpenLibrary_WB(SysBase, (arg1), (arg2))

#define __InitSemaphore_WB(__SysBase, __arg1) \
        AROS_LC1(void, InitSemaphore, \
                  AROS_LCA(struct SignalSemaphore *,(__arg1),A0), \
        struct ExecBase *, (__SysBase), 93, Exec)

#define InitSemaphore(arg1) \
    __InitSemaphore_WB(SysBase, (arg1))

#define __ObtainSemaphore_WB(__SysBase, __arg1) \
        AROS_LC1(void, ObtainSemaphore, \
                  AROS_LCA(struct SignalSemaphore *,(__arg1),A0), \
        struct ExecBase *, (__SysBase), 94, Exec)

#define ObtainSemaphore(arg1) \
    __ObtainSemaphore_WB(SysBase, (arg1))

#define __ReleaseSemaphore_WB(__SysBase, __arg1) \
        AROS_LC1(void, ReleaseSemaphore, \
                  AROS_LCA(struct SignalSemaphore *,(__arg1),A0), \
        struct ExecBase *, (__SysBase), 95, Exec)

#define ReleaseSemaphore(arg1) \
    __ReleaseSemaphore_WB(SysBase, (arg1))

#define __AttemptSemaphore_WB(__SysBase, __arg1) \
        AROS_LC1(ULONG, AttemptSemaphore, \
                  AROS_LCA(struct SignalSemaphore *,(__arg1),A0), \
        struct ExecBase *, (__SysBase), 96, Exec)

#define AttemptSemaphore(arg1) \
    __AttemptSemaphore_WB(SysBase, (arg1))

#define __ObtainSemaphoreList_WB(__SysBase, __arg1) \
        AROS_LC1(void, ObtainSemaphoreList, \
                  AROS_LCA(struct List *,(__arg1),A0), \
        struct ExecBase *, (__SysBase), 97, Exec)

#define ObtainSemaphoreList(arg1) \
    __ObtainSemaphoreList_WB(SysBase, (arg1))

#define __ReleaseSemaphoreList_WB(__SysBase, __arg1) \
        AROS_LC1(void, ReleaseSemaphoreList, \
                  AROS_LCA(struct List *,(__arg1),A0), \
        struct ExecBase *, (__SysBase), 98, Exec)

#define ReleaseSemaphoreList(arg1) \
    __ReleaseSemaphoreList_WB(SysBase, (arg1))

#define __FindSemaphore_WB(__SysBase, __arg1) \
        AROS_LC1(struct SignalSemaphore *, FindSemaphore, \
                  AROS_LCA(STRPTR,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 99, Exec)

#define FindSemaphore(arg1) \
    __FindSemaphore_WB(SysBase, (arg1))

#define __AddSemaphore_WB(__SysBase, __arg1) \
        AROS_LC1(void, AddSemaphore, \
                  AROS_LCA(struct SignalSemaphore *,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 100, Exec)

#define AddSemaphore(arg1) \
    __AddSemaphore_WB(SysBase, (arg1))

#define __RemSemaphore_WB(__SysBase, __arg1) \
        AROS_LC1(void, RemSemaphore, \
                  AROS_LCA(struct SignalSemaphore *,(__arg1),A0), \
        struct ExecBase *, (__SysBase), 101, Exec)

#define RemSemaphore(arg1) \
    __RemSemaphore_WB(SysBase, (arg1))

#define __SumKickData_WB(__SysBase) \
        AROS_LC0(ULONG, SumKickData, \
        struct ExecBase *, (__SysBase), 102, Exec)

#define SumKickData() \
    __SumKickData_WB(SysBase)

#define __AddMemList_WB(__SysBase, __arg1, __arg2, __arg3, __arg4, __arg5) \
        AROS_LC5(void, AddMemList, \
                  AROS_LCA(ULONG,(__arg1),D0), \
                  AROS_LCA(ULONG,(__arg2),D1), \
                  AROS_LCA(LONG,(__arg3),D2), \
                  AROS_LCA(APTR,(__arg4),A0), \
                  AROS_LCA(STRPTR,(__arg5),A1), \
        struct ExecBase *, (__SysBase), 103, Exec)

#define AddMemList(arg1, arg2, arg3, arg4, arg5) \
    __AddMemList_WB(SysBase, (arg1), (arg2), (arg3), (arg4), (arg5))

#define __CopyMem_WB(__SysBase, __arg1, __arg2, __arg3) \
        AROS_LC3(void, CopyMem, \
                  AROS_LCA(CONST_APTR,(__arg1),A0), \
                  AROS_LCA(APTR,(__arg2),A1), \
                  AROS_LCA(ULONG,(__arg3),D0), \
        struct ExecBase *, (__SysBase), 104, Exec)

#define CopyMem(arg1, arg2, arg3) \
    __CopyMem_WB(SysBase, (arg1), (arg2), (arg3))

#define __CopyMemQuick_WB(__SysBase, __arg1, __arg2, __arg3) \
        AROS_LC3(void, CopyMemQuick, \
                  AROS_LCA(CONST_APTR,(__arg1),A0), \
                  AROS_LCA(APTR,(__arg2),A1), \
                  AROS_LCA(ULONG,(__arg3),D0), \
        struct ExecBase *, (__SysBase), 105, Exec)

#define CopyMemQuick(arg1, arg2, arg3) \
    __CopyMemQuick_WB(SysBase, (arg1), (arg2), (arg3))

#define __CacheClearU_WB(__SysBase) \
        AROS_LC0(void, CacheClearU, \
        struct ExecBase *, (__SysBase), 106, Exec)

#define CacheClearU() \
    __CacheClearU_WB(SysBase)

#define __CacheClearE_WB(__SysBase, __arg1, __arg2, __arg3) \
        AROS_LC3(void, CacheClearE, \
                  AROS_LCA(APTR,(__arg1),A0), \
                  AROS_LCA(ULONG,(__arg2),D0), \
                  AROS_LCA(ULONG,(__arg3),D1), \
        struct ExecBase *, (__SysBase), 107, Exec)

#define CacheClearE(arg1, arg2, arg3) \
    __CacheClearE_WB(SysBase, (arg1), (arg2), (arg3))

#define __CacheControl_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(ULONG, CacheControl, \
                  AROS_LCA(ULONG,(__arg1),D0), \
                  AROS_LCA(ULONG,(__arg2),D1), \
        struct ExecBase *, (__SysBase), 108, Exec)

#define CacheControl(arg1, arg2) \
    __CacheControl_WB(SysBase, (arg1), (arg2))

#define __CreateIORequest_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(struct IORequest *, CreateIORequest, \
                  AROS_LCA(struct MsgPort *,(__arg1),A0), \
                  AROS_LCA(ULONG,(__arg2),D0), \
        struct ExecBase *, (__SysBase), 109, Exec)

#define CreateIORequest(arg1, arg2) \
    __CreateIORequest_WB(SysBase, (arg1), (arg2))

#define __DeleteIORequest_WB(__SysBase, __arg1) \
        AROS_LC1(void, DeleteIORequest, \
                  AROS_LCA(struct IORequest *,(__arg1),A0), \
        struct ExecBase *, (__SysBase), 110, Exec)

#define DeleteIORequest(arg1) \
    __DeleteIORequest_WB(SysBase, (arg1))

#define __CreateMsgPort_WB(__SysBase) \
        AROS_LC0(struct MsgPort *, CreateMsgPort, \
        struct ExecBase *, (__SysBase), 111, Exec)

#define CreateMsgPort() \
    __CreateMsgPort_WB(SysBase)

#define __DeleteMsgPort_WB(__SysBase, __arg1) \
        AROS_LC1(void, DeleteMsgPort, \
                  AROS_LCA(struct MsgPort *,(__arg1),A0), \
        struct ExecBase *, (__SysBase), 112, Exec)

#define DeleteMsgPort(arg1) \
    __DeleteMsgPort_WB(SysBase, (arg1))

#define __ObtainSemaphoreShared_WB(__SysBase, __arg1) \
        AROS_LC1(void, ObtainSemaphoreShared, \
                  AROS_LCA(struct SignalSemaphore *,(__arg1),A0), \
        struct ExecBase *, (__SysBase), 113, Exec)

#define ObtainSemaphoreShared(arg1) \
    __ObtainSemaphoreShared_WB(SysBase, (arg1))

#define __AllocVec_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(APTR, AllocVec, \
                  AROS_LCA(ULONG,(__arg1),D0), \
                  AROS_LCA(ULONG,(__arg2),D1), \
        struct ExecBase *, (__SysBase), 114, Exec)

#define AllocVec(arg1, arg2) \
    __AllocVec_WB(SysBase, (arg1), (arg2))

#define __FreeVec_WB(__SysBase, __arg1) \
        AROS_LC1(void, FreeVec, \
                  AROS_LCA(APTR,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 115, Exec)

#define FreeVec(arg1) \
    __FreeVec_WB(SysBase, (arg1))

#define __CreatePool_WB(__SysBase, __arg1, __arg2, __arg3) \
        AROS_LC3(APTR, CreatePool, \
                  AROS_LCA(ULONG,(__arg1),D0), \
                  AROS_LCA(ULONG,(__arg2),D1), \
                  AROS_LCA(ULONG,(__arg3),D2), \
        struct ExecBase *, (__SysBase), 116, Exec)

#define CreatePool(arg1, arg2, arg3) \
    __CreatePool_WB(SysBase, (arg1), (arg2), (arg3))

#define __DeletePool_WB(__SysBase, __arg1) \
        AROS_LC1(void, DeletePool, \
                  AROS_LCA(APTR,(__arg1),A0), \
        struct ExecBase *, (__SysBase), 117, Exec)

#define DeletePool(arg1) \
    __DeletePool_WB(SysBase, (arg1))

#define __AllocPooled_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(APTR, AllocPooled, \
                  AROS_LCA(APTR,(__arg1),A0), \
                  AROS_LCA(ULONG,(__arg2),D0), \
        struct ExecBase *, (__SysBase), 118, Exec)

#define AllocPooled(arg1, arg2) \
    __AllocPooled_WB(SysBase, (arg1), (arg2))

#define __FreePooled_WB(__SysBase, __arg1, __arg2, __arg3) \
        AROS_LC3(void, FreePooled, \
                  AROS_LCA(APTR,(__arg1),A0), \
                  AROS_LCA(APTR,(__arg2),A1), \
                  AROS_LCA(ULONG,(__arg3),D0), \
        struct ExecBase *, (__SysBase), 119, Exec)

#define FreePooled(arg1, arg2, arg3) \
    __FreePooled_WB(SysBase, (arg1), (arg2), (arg3))

#define __AttemptSemaphoreShared_WB(__SysBase, __arg1) \
        AROS_LC1(ULONG, AttemptSemaphoreShared, \
                  AROS_LCA(struct SignalSemaphore *,(__arg1),A0), \
        struct ExecBase *, (__SysBase), 120, Exec)

#define AttemptSemaphoreShared(arg1) \
    __AttemptSemaphoreShared_WB(SysBase, (arg1))

#define __ColdReboot_WB(__SysBase) \
        AROS_LC0(void, ColdReboot, \
        struct ExecBase *, (__SysBase), 121, Exec)

#define ColdReboot() \
    __ColdReboot_WB(SysBase)

#define __StackSwap_WB(__SysBase, __arg1) \
        AROS_LC1(void, StackSwap, \
                  AROS_LCA(struct StackSwapStruct *,(__arg1),A0), \
        struct ExecBase *, (__SysBase), 122, Exec)

#define StackSwap(arg1) \
    __StackSwap_WB(SysBase, (arg1))

#define __ChildFree_WB(__SysBase, __arg1) \
        AROS_LC1(void, ChildFree, \
                  AROS_LCA(APTR,(__arg1),D0), \
        struct ExecBase *, (__SysBase), 123, Exec)

#define ChildFree(arg1) \
    __ChildFree_WB(SysBase, (arg1))

#define __ChildOrphan_WB(__SysBase, __arg1) \
        AROS_LC1(ULONG, ChildOrphan, \
                  AROS_LCA(APTR,(__arg1),D0), \
        struct ExecBase *, (__SysBase), 124, Exec)

#define ChildOrphan(arg1) \
    __ChildOrphan_WB(SysBase, (arg1))

#define __ChildStatus_WB(__SysBase, __arg1) \
        AROS_LC1(ULONG, ChildStatus, \
                  AROS_LCA(APTR,(__arg1),D0), \
        struct ExecBase *, (__SysBase), 125, Exec)

#define ChildStatus(arg1) \
    __ChildStatus_WB(SysBase, (arg1))

#define __ChildWait_WB(__SysBase, __arg1) \
        AROS_LC1(IPTR, ChildWait, \
                  AROS_LCA(APTR,(__arg1),D0), \
        struct ExecBase *, (__SysBase), 126, Exec)

#define ChildWait(arg1) \
    __ChildWait_WB(SysBase, (arg1))

#define __CachePreDMA_WB(__SysBase, __arg1, __arg2, __arg3) \
        AROS_LC3(APTR, CachePreDMA, \
                  AROS_LCA(APTR,(__arg1),A0), \
                  AROS_LCA(ULONG *,(__arg2),A1), \
                  AROS_LCA(ULONG,(__arg3),D0), \
        struct ExecBase *, (__SysBase), 127, Exec)

#define CachePreDMA(arg1, arg2, arg3) \
    __CachePreDMA_WB(SysBase, (arg1), (arg2), (arg3))

#if !defined(NO_INLINE_STDARG) && !defined(EXEC_NO_INLINE_STDARG)
#define CachePreDM(arg1, arg2, ...) \
({ \
    IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
    CachePreDMA((arg1), (arg2), (ULONG)__args); \
})
#endif /* !NO_INLINE_STDARG */

#define __CachePostDMA_WB(__SysBase, __arg1, __arg2, __arg3) \
        AROS_LC3(void, CachePostDMA, \
                  AROS_LCA(APTR,(__arg1),A0), \
                  AROS_LCA(ULONG *,(__arg2),A1), \
                  AROS_LCA(ULONG,(__arg3),D0), \
        struct ExecBase *, (__SysBase), 128, Exec)

#define CachePostDMA(arg1, arg2, arg3) \
    __CachePostDMA_WB(SysBase, (arg1), (arg2), (arg3))

#if !defined(NO_INLINE_STDARG) && !defined(EXEC_NO_INLINE_STDARG)
#define CachePostDM(arg1, arg2, ...) \
({ \
    IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
    CachePostDMA((arg1), (arg2), (ULONG)__args); \
})
#endif /* !NO_INLINE_STDARG */

#define __AddMemHandler_WB(__SysBase, __arg1) \
        AROS_LC1(void, AddMemHandler, \
                  AROS_LCA(struct Interrupt *,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 129, Exec)

#define AddMemHandler(arg1) \
    __AddMemHandler_WB(SysBase, (arg1))

#define __RemMemHandler_WB(__SysBase, __arg1) \
        AROS_LC1(void, RemMemHandler, \
                  AROS_LCA(struct Interrupt *,(__arg1),A1), \
        struct ExecBase *, (__SysBase), 130, Exec)

#define RemMemHandler(arg1) \
    __RemMemHandler_WB(SysBase, (arg1))

#define __ObtainQuickVector_WB(__SysBase, __arg1) \
        AROS_LC1(ULONG, ObtainQuickVector, \
                  AROS_LCA(APTR,(__arg1),A0), \
        struct ExecBase *, (__SysBase), 131, Exec)

#define ObtainQuickVector(arg1) \
    __ObtainQuickVector_WB(SysBase, (arg1))

#define __TaggedOpenLibrary_WB(__SysBase, __arg1) \
        AROS_LC1(APTR, TaggedOpenLibrary, \
                  AROS_LCA(LONG,(__arg1),D0), \
        struct ExecBase *, (__SysBase), 135, Exec)

#define TaggedOpenLibrary(arg1) \
    __TaggedOpenLibrary_WB(SysBase, (arg1))

#define __AllocVecPooled_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(APTR, AllocVecPooled, \
                  AROS_LCA(APTR,(__arg1),D0), \
                  AROS_LCA(ULONG,(__arg2),D1), \
        struct ExecBase *, (__SysBase), 149, Exec)

#define AllocVecPooled(arg1, arg2) \
    __AllocVecPooled_WB(SysBase, (arg1), (arg2))

#define __FreeVecPooled_WB(__SysBase, __arg1, __arg2) \
        AROS_LC2(void, FreeVecPooled, \
                  AROS_LCA(APTR,(__arg1),D0), \
                  AROS_LCA(APTR,(__arg2),D1), \
        struct ExecBase *, (__SysBase), 150, Exec)

#define FreeVecPooled(arg1, arg2) \
    __FreeVecPooled_WB(SysBase, (arg1), (arg2))

#define __NewAllocEntry_WB(__SysBase, __arg1, __arg2, __arg3) \
        AROS_LC3(BOOL, NewAllocEntry, \
                  AROS_LCA(struct MemList *,(__arg1),A0), \
                  AROS_LCA(struct MemList **,(__arg2),A1), \
                  AROS_LCA(ULONG *,(__arg3),D0), \
        struct ExecBase *, (__SysBase), 151, Exec)

#define NewAllocEntry(arg1, arg2, arg3) \
    __NewAllocEntry_WB(SysBase, (arg1), (arg2), (arg3))

#define __NewAddTask_WB(__SysBase, __arg1, __arg2, __arg3, __arg4) \
        AROS_LC4(APTR, NewAddTask, \
                  AROS_LCA(struct Task *,(__arg1),A1), \
                  AROS_LCA(APTR,(__arg2),A2), \
                  AROS_LCA(APTR,(__arg3),A3), \
                  AROS_LCA(struct TagItem *,(__arg4),A4), \
        struct ExecBase *, (__SysBase), 152, Exec)

#define NewAddTask(arg1, arg2, arg3, arg4) \
    __NewAddTask_WB(SysBase, (arg1), (arg2), (arg3), (arg4))

#if !defined(NO_INLINE_STDARG) && !defined(EXEC_NO_INLINE_STDARG)
#define NewAddTaskTags(arg1, arg2, arg3, ...) \
({ \
    IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
    NewAddTask((arg1), (arg2), (arg3), (struct TagItem *)__args); \
})
#endif /* !NO_INLINE_STDARG */

#endif /* DEFINES_EXEC_PROTOS_H*/
