Thread overview | ||||||
---|---|---|---|---|---|---|
|
July 02, 2002 stack pragma | ||||
---|---|---|---|---|
| ||||
Is there any #pragma for turning on/off stack-checking? Like "#pragma off(check_stack)" for Watcom/MSVC. Gisle V. |
July 02, 2002 Re: stack pragma | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gisle Vanem | -s switch turns it on, no -s switch leaves it off.
Gisle Vanem wrote:
> Is there any #pragma for turning on/off stack-checking? Like "#pragma off(check_stack)" for Watcom/MSVC.
>
> Gisle V.
|
July 02, 2002 Re: stack pragma | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jan Knepper | You can also check the stack for an individual function by calling _chkstack() upon function entry. -Walter "Jan Knepper" <jan@smartsoft.cc> wrote in message news:3D21A73A.3A44D55A@smartsoft.cc... > -s switch turns it on, no -s switch leaves it off. > > > > Gisle Vanem wrote: > > > Is there any #pragma for turning on/off stack-checking? Like "#pragma off(check_stack)" for Watcom/MSVC. > > > > Gisle V. > |
July 02, 2002 Re: stack pragma | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jan Knepper | In article <3D21A73A.3A44D55A@smartsoft.cc>, Jan Knepper (jan@smartsoft.cc) says... [Is there any #pragma for turning on/off stack-checking?] > -s switch turns it on, no -s switch leaves it off. Did this ever check for stack overflow as opposed to doing a stack probe? I've got a threading system where it is advantageous (and prudent) to rewrite the stack overflow checker, but I have not been able to get it called using -s. -- -Larry Brasfield (address munged, s/sn/h/ to reply) |
Copyright © 1999-2021 by the D Language Foundation