Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 14280:68b61aa1aa4a legacy-trunk
PyOS_CheckStack(): Better ANSI'fy this while we're at it.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Thu, 31 Aug 2000 05:52:44 +0000 |
| parents | fb8fb53a2eff |
| children | 6f6f965c5e2d |
comparison
equal
deleted
inserted
replaced
| 14279:b1a0fd3df1fc | 14280:68b61aa1aa4a |
|---|---|
| 1203 | 1203 |
| 1204 /* | 1204 /* |
| 1205 * Return non-zero when we run out of memory on the stack; zero otherwise. | 1205 * Return non-zero when we run out of memory on the stack; zero otherwise. |
| 1206 */ | 1206 */ |
| 1207 int | 1207 int |
| 1208 PyOS_CheckStack() | 1208 PyOS_CheckStack(void) |
| 1209 { | 1209 { |
| 1210 __try { | 1210 __try { |
| 1211 /* _alloca throws a stack overflow exception if there's | 1211 /* _alloca throws a stack overflow exception if there's |
| 1212 not enough space left on the stack */ | 1212 not enough space left on the stack */ |
| 1213 _alloca(PYOS_STACK_MARGIN * sizeof(void*)); | 1213 _alloca(PYOS_STACK_MARGIN * sizeof(void*)); |
