www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++.dos - stack pragma

↑ ↓ ← "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
↑ ↓ 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
→ "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
→ 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