[Rd] R/C++/memory leaks
Ernest Turro
ernest.turro at ic.ac.uk
Tue Feb 27 17:55:38 CET 2007
[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
>
>
>
>
>
>
More information about the R-devel
mailing list