| 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,
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie