muimaster.library: support Listview_List in List
[AROS.git] / compiler / posixc / __alloca.c
blob72de7cebc0e25dc955834018cc07e6b6105df2fa
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <proto/exec.h>
8 /* private function to get the upper or lower bound (depending on the architecture) of the stack */
9 /* It has to go into a separate file so that proto/exec.h doesn't get included in the clib headers */
11 void *__alloca_get_stack_limit(void)
13 #if AROS_STACK_GROWS_DOWNWARDS
14 return FindTask(NULL)->tc_SPLower;
15 #else
16 return FindTask(NULL)->tc_SPUpper;
17 #endif