#ifndef _SUPPORT_H
#define _SUPPORT_H

#include <exec/tasks.h>
#include <utility/tagitem.h>

enum {
    TASKTAG_NAME = TAG_USER,
    TASKTAG_AFFINITY,
    TASKTAG_PRI,
    TASKTAG_PC,
    TASKTAG_STACKSIZE,
    TASKTAG_USERDATA,
    TASKTAG_ARG1,
    TASKTAG_ARG2,
    TASKTAG_ARG3,
    TASKTAG_ARG4,
};

struct Task * NewCreateTaskTags(struct TagItem *tags);
void _sprintf(char *buf, const char * restrict format, ...);

#define NewCreateTask(...)          \
    ({ struct TagItem tags[] = { __VA_ARGS__ }; struct Task *t = NewCreateTaskTags(tags); t; })


#endif /* _SUPPORT_H */
