From simon.urbanek at r-project.org  Thu Sep  3 14:57:09 2009
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Thu, 3 Sep 2009 08:57:09 -0400
Subject: [Rd] Depth of protection stack?
In-Reply-To: <9DA1A7F7-1DAE-4015-9224-5BAE6678576D@gmail.com>
References: <9DA1A7F7-1DAE-4015-9224-5BAE6678576D@gmail.com>
Message-ID: <4BADBDE9-B52C-4A8A-AA0E-6EE6162E2B54@r-project.org>


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



[Rd] Depth of protection stack?
Simon Urbanek