Guardian Programming Reference Summary for C

Functions Summary (R-Z)
Guardian Programming Reference Summary for C522630-001
8-46
XSTACKTEST
(superseded by HEADROOM_ENSURE_) Checks stack limits, ensures that adequate
stack space is available, and returns a set of constants to be used with the XBNDSTEST
procedure.
status
flags
#include <cextdecs(XSTACKTEST)>
short XSTACKTEST ( short _near *firstparam /* i */
,short stackwords /* i */
,short flags /* i */
,long long *constants ); /* o */
0 Adequate stack space available.
2 Undefined flags value.
21 The value of stackwords is less than 1.
22 Bounds error on firstparm or constants.
632 Insufficient stack space available.
Bits 0-13 Must be zero.
Bit 14 Allow parameters that use privileged addresses.
Bit 15 Skip the stack test and return 0.