#ifndef INLINE_DEBUG_H
#define INLINE_DEBUG_H

/*
    *** Automatically generated from '/data/deadwood/gitAROS/AROS/rom/debug/debug.conf'. Edits will be lost. ***
    Copyright © 1995-2011, The AROS Development Team. All rights reserved.
*/

/*
    Desc: Inline function for debug
*/

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


static inline void __inline_Debug_RegisterModule(const char * __arg1, BPTR __arg2, ULONG __arg3, APTR __arg4, APTR __DebugBase)
{
    AROS_LIBREQ(DebugBase, 0)
    AROS_LC4NR(void, RegisterModule,
        AROS_LCA(const char *,(__arg1),A0),
        AROS_LCA(BPTR,(__arg2),A1),
        AROS_LCA(ULONG,(__arg3),D0),
        AROS_LCA(APTR,(__arg4),A2),
        struct Library *, (__DebugBase), 5, Debug    );
}

#define RegisterModule(arg1, arg2, arg3, arg4) \
    __inline_Debug_RegisterModule((arg1), (arg2), (arg3), (arg4), (APTR)DebugBase)

static inline void __inline_Debug_UnregisterModule(BPTR __arg1, APTR __DebugBase)
{
    AROS_LIBREQ(DebugBase, 0)
    AROS_LC1NR(void, UnregisterModule,
        AROS_LCA(BPTR,(__arg1),A0),
        struct Library *, (__DebugBase), 6, Debug    );
}

#define UnregisterModule(arg1) \
    __inline_Debug_UnregisterModule((arg1), (APTR)DebugBase)

static inline int __inline_Debug_DecodeLocationA(void * __arg1, struct TagItem * __arg2, APTR __DebugBase)
{
    AROS_LIBREQ(DebugBase, 0)
    return AROS_LC2(int, DecodeLocationA,
        AROS_LCA(void *,(__arg1),A0),
        AROS_LCA(struct TagItem *,(__arg2),A1),
        struct Library *, (__DebugBase), 7, Debug    );
}

#define DecodeLocationA(arg1, arg2) \
    __inline_Debug_DecodeLocationA((arg1), (arg2), (APTR)DebugBase)

#if !defined(NO_INLINE_STDARG) && !defined(DEBUG_NO_INLINE_STDARG)
#define DecodeLocation(arg1, ...) \
({ \
    IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
    DecodeLocationA((arg1), (struct TagItem *)__args); \
})
#endif /* !NO_INLINE_STDARG */

#endif /* INLINE_DEBUG_H*/
