ProcessStackCheck.mesa
Copyright Ó 1992 by Xerox Corporation. All rights reserved.
Russ Atkinson (RRA) October 9, 1992 1:28 pm PDT
ProcessStackCheck: CEDAR DEFINITIONS = BEGIN
StackPushTest: PROC [bytes: INT ¬ 16*1024] RETURNS [BOOL];
Returns TRUE if the specified number of bytes can be pushed onto the process stack without overflow (check for underfow if bytes < 0). Returns FALSE if the stack is exceeded in either direction. This can be useful in cases where deep recursion is possible.
END.