Duh. Yes, of course. Returning $depth - 1 is what I actually did, and on my way from the editor to here, I thought, "Hey, I can save a step by just initializing $depth to -1 to begin with!". And I wrote it down before I actually tried it.
Busted...
---
A fair fight is a sign of poor planning.
In reply to Re: Re: Re: Re: Getting size of call stack
by Sprad
in thread Getting size of call stack
by Sprad
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |