diff options
Diffstat (limited to 'mps/code/span.c')
| -rw-r--r-- | mps/code/span.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mps/code/span.c b/mps/code/span.c new file mode 100644 index 00000000000..24f203d26c4 --- /dev/null +++ b/mps/code/span.c | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | /* impl.c.span: ANSI STACK PROBE | ||
| 2 | * | ||
| 3 | * $HopeName: MMsrc!span.c(trunk.2) $ | ||
| 4 | * Copyright (C) 1997 Harlequin Limited. All rights reserved. | ||
| 5 | * | ||
| 6 | * PURPOSE | ||
| 7 | * | ||
| 8 | * .purpose: The purpose of the ANSI Stack Probe is to provide a | ||
| 9 | * non-functional implementation of the StackProbe interface. | ||
| 10 | * StackProbe has a function implementation on platforms where the | ||
| 11 | * MPS takes some special action to avoid stack overflow. | ||
| 12 | */ | ||
| 13 | |||
| 14 | #include "mpm.h" | ||
| 15 | |||
| 16 | SRCID(span, "$HopeName: MMsrc!span.c(trunk.2) $"); | ||
| 17 | |||
| 18 | |||
| 19 | /* StackProbe -- probe above the stack to provoke early stack overflow */ | ||
| 20 | |||
| 21 | void StackProbe(Size depth) | ||
| 22 | { | ||
| 23 | AVER(depth == 0); | ||
| 24 | NOOP; | ||
| 25 | } | ||