Support rastport clipping rectangle for layerless rastports
[tangerine.git] / rom / exec / allocvecpooled.c
blob300cd40fa7849c289308bbc78ccff458916b0fc7
1 /*
2 Copyright © 2003, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <aros/libcall.h>
7 #include <proto/exec.h>
9 #include "exec_intern.h"
10 #include <aros/debug.h>
12 AROS_LH2(APTR, AllocVecPooled,
13 AROS_LHA(APTR, pool, D0),
14 AROS_LHA(ULONG, size, D1),
15 struct ExecBase *, SysBase, 149, Exec)
17 AROS_LIBFUNC_INIT
19 IPTR *memory;
21 if (pool == NULL) return NULL;
23 size += sizeof(IPTR);
24 memory = AllocPooled(pool, size);
26 if (memory != NULL)
28 *memory++ = size;
31 return memory;
33 AROS_LIBFUNC_EXIT
34 } /* AllocVecPooled() */