Moved DisplayError() back to base code
[AROS.git] / rom / exec / allocvecpooled.c
blobe30e2cc514623c38e62a3ceff49d41feb46fff31
1 /*
2 Copyright © 2003-2011, 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, 169, 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() */