Blitz (97/176)

From:James L Boyd
Date:19 Oct 2000 at 02:17:13
Subject:Re: Stack size.

> >I think there was a stack command in StatsFuncs, in dev/basic on
> >Aminet...if
> >not, gimme a shout and I'll dig out the code...unless someone else
> >already
> >has it handy...?
>
> The function in there is for launching WB programs.

There's one for finding out your program's stack size, but I can't find one
to set it (I'm sure Rob Hutchinson had some code that did this)...

Function.l StackSize {}

*task.Task=FindTask_ (0)

If *task
Function Return *task\tc_SPUpper-*task\tc_SPLower
EndIf

End Function

; demo :

; NPrint "This program uses a stack of ",StackSize {}," bytes."

; MouseWait:End

See ya,



James L Boyd (Member of DNRC),
http://www.thesurfaces.net/
http://www.blitzbasic.com/
http://www.dundeemusic.co.uk/
Connected from Fife, Scotland.
Death to the Pixies!


---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie