#ifndef _SUPPORT_H #define _SUPPORT_H #include #include 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; }) #define ForeachNode(list, node) \ for \ ( \ node = (void *)(((struct List *)(list))->lh_Head); \ ((struct Node *)(node))->ln_Succ; \ node = (void *)(((struct Node *)(node))->ln_Succ) \ ) extern ULONG threadCnt; extern APTR memPool; #endif /* _SUPPORT_H */