[Rd] Depth of protection stack?

Simon Urbanek simon.urbanek at r-project.org
Thu Sep 3 14:57:09 CEST 2009


On Sep 2, 2009, at 22:28 , Saptarshi Guha wrote:

> Hello,
> Is there a way, in C, to find how deep my current protection stack  
> is(apart from keeping a count).
> I know the  default nested size is 50,000 and because of some coding  
> error i think i'm reaching it.
> Is there a way to find out the current depth reached?
>

extern int R_PPStackTop;

(use for debugging purposes only!)

Cheers,
Simon



More information about the R-devel mailing list