www.digitalmars.com         C & C++   DMDScript  

c++.dos - stack pragma

reply "Gisle Vanem" <giva bgnett.no> writes:
Is there any #pragma for turning on/off stack-checking?
Like "#pragma off(check_stack)" for Watcom/MSVC.

Gisle V.
Jul 01 2002
parent reply Jan Knepper <jan smartsoft.cc> writes:
-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.

Jul 02 2002
next sibling parent "Walter" <walter digitalmars.com> writes:
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.


Jul 02 2002
prev sibling parent Larry Brasfield <larry_brasfield snotmail.com> writes:
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)
Jul 02 2002