From ernest.turro at ic.ac.uk  Tue Feb 27 17:55:38 2007
From: ernest.turro at ic.ac.uk (Ernest Turro)
Date: Tue, 27 Feb 2007 16:55:38 +0000
Subject: [Rd] R/C++/memory leaks
In-Reply-To: <B62E11C5-9122-495A-9032-37610A7288B4@ic.ac.uk>
References: <39CFDB8F-918C-48FB-9A6D-D8055D828C13@ic.ac.uk>
	<20070225222144.GA16188@wheat.betterworld.us>
	<F3C922F3-4B4C-4DA9-84E1-F17B52302BCB@ic.ac.uk>
	<20070226064336.GL5871@wheat.betterworld.us>
	<A0FD96B2-2FCD-416E-9496-6D6192511357@ic.ac.uk>
	<1172529270.9347.164.camel@iron.psg.net>
	<B62E11C5-9122-495A-9032-37610A7288B4@ic.ac.uk>
Message-ID: <C5C34622-06F9-410B-B774-8141FBD57ED0@ic.ac.uk>

[snip]

Sorry. Small mistake fixed below:

>
> Leaving aside the HAVE_AQUA and Win32 cases, I would like to write  
> a new function:
>
> int R_CheckInterruptsPending(void)
> {
>     R_CheckStack();
>     return R_interrupts_pending;
> }
>
> and then in my C++ code:
>

if(R_CheckInterruptsPending) {
	// clean up
	// ...
	R_CheckUserInterrupt();
}
>
> R_CheckStack() is declared in R_ext/Utils.h but the variable  
> R_interrupts_pending isn't, so how could I access it? In other  
> words, how can I extend error.c .....
>
>
> Thanks,
>
> E
>
>
>
>
>
>



[Rd] R/C++/memory leaks
Ernest Turro