On Sat, Feb 08, 2020 at 03:47:49PM -0500, JJ Allaire wrote:
>    On Sat, Feb 8, 2020 at 3:45 PM Joshua N Pritikin
>    <[1]jpriti...@pobox.com> wrote:
>      Sure, but does it *have* to be that way? It seems to me that
>      exceptions.h line 40,
>        rcpp_set_stack_trace(Shield<SEXP>(stack_trace()))
> 
>    Not sure about whether this is indeed a mandatory constraint (I didn't
>    work on the stack trace bit).

If I'm reading it correctly, rcpp_set_stack_trace(Shield<SEXP>(stack_trace()))
will work equally well in either location. R can't introspect about
the C++ stack; It must be saving the R call stack.
_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to