File tree Expand file tree Collapse file tree 7 files changed +4
-99
lines changed
Expand file tree Collapse file tree 7 files changed +4
-99
lines changed Original file line number Diff line number Diff line change 11inst /lib
2- * .Rproj
3- .Rproj.user
4- src /* .o
5- src /* .so
6- src /* .dll
2+
Original file line number Diff line number Diff line change 22
33 * inst/include/Rcpp/exceptions.h: Move stop() into Rcpp namespace
44
5- 2014-01-03 JJ Allaire <jj@rstudio.org>
6-
7- * .gitignore: Added src/<object-files>, *.Rproj, and .Rproj.user
8- * inst/include/Rcpp/Interrupt.h: New checkUserInterrupt function
9- that provides a C++ friendly implementation of R_CheckUserInterrupt
10- * inst/include/RcppCommon.h: Include Rcpp/Interrupts.h
11- * inst/include/macros/macros.h: Check for interrupts in END_RCPP
12- * src/attributes.cpp: Handle interrupted-error in attribute
13- function envelope.
14-
1552013-12-31 Dirk Eddelbuettel <edd@debian.org>
166
177 * vignettes/Rcpp.bib: Updated CRAN package references
Original file line number Diff line number Diff line change 2121 and \code {NaN }. )
2222 \item Applied two bug fixes to Vector \code {sort()} and \code {RObject }
2323 definition spotted and corrected by Kevin Ushey
24- definition spotted and correct by Kevin Ushey
25- \item New \code {checkUserInterrupt()} function that provides a C ++ friendly
26- implementation of \code {R_CheckUserInterrupt }.
2724 }
2825 \item Changes in Rcpp documentation :
2926 \itemize {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3131#endif
3232
3333#ifndef VOID_END_RCPP
34- #define VOID_END_RCPP } catch ( Rcpp::internal::InterruptedException& __ex__ ) { Rf_jump_to_toplevel (); } catch ( std::exception& __ex__ ){ forward_exception_to_r ( __ex__ ) ; } catch (...){ ::Rf_error ( " c++ exception (unknown reason)" ) ; }
34+ #define VOID_END_RCPP } catch ( std::exception& __ex__ ){ forward_exception_to_r ( __ex__ ) ; } catch (...){ ::Rf_error ( " c++ exception (unknown reason)" ) ; }
3535#endif
3636
3737#ifndef END_RCPP
3838#define END_RCPP VOID_END_RCPP return R_NilValue;
3939#endif
4040
4141#ifndef END_RCPP_RETURN_ERROR
42- #define END_RCPP_RETURN_ERROR } catch ( Rcpp::internal::InterruptedException& __ex__ ) { return Rcpp::internal::interruptedError (); } catch ( std::exception& __ex__ ){ return exception_to_try_error ( __ex__ ) ; } catch (...){ return string_to_try_error ( " c++ exception (unknown reason)" ) ; } return R_NilValue;
42+ #define END_RCPP_RETURN_ERROR } catch ( std::exception& __ex__ ){ return exception_to_try_error ( __ex__ ) ; } catch (...){ return string_to_try_error ( " c++ exception (unknown reason)" ) ; } return R_NilValue;
4343#endif
4444
4545#define Rcpp_error (MESSAGE ) throw Rcpp::exception ( MESSAGE, __FILE__, __LINE__ )
Original file line number Diff line number Diff line change @@ -139,8 +139,6 @@ namespace Rcpp{
139139
140140#include < Rcpp/exceptions.h>
141141
142- #include < Rcpp/Interrupt.h>
143-
144142namespace Rcpp {
145143 template <typename T> class object ;
146144 class String ;
Original file line number Diff line number Diff line change @@ -1700,10 +1700,6 @@ namespace attributes {
17001700 ostr () << " );" << std::endl;
17011701 ostr () << " }" << std::endl;
17021702
1703- ostr () << " if (__result.inherits(\" interrupted-error\" ))"
1704- << std::endl
1705- << " throw Rcpp::internal::InterruptedException();"
1706- << std::endl;
17071703 ostr () << " if (__result.inherits(\" try-error\" ))"
17081704 << std::endl
17091705 << " throw Rcpp::exception(as<std::string>("
@@ -2226,13 +2222,7 @@ namespace attributes {
22262222 }
22272223 ostr << " ));" << std::endl;
22282224 ostr << " }" << std::endl;
2229- ostr << " Rboolean __isInterrupt = Rf_inherits(__result, \" interrupted-error\" );"
2230- << std::endl
2231- << " if (__isInterrupt) {" << std::endl
2232- << " UNPROTECT(1);" << std::endl
2233- << " Rcpp::internal::jumpToTop();" << std::endl
2234- << " }" << std::endl
2235- << " Rboolean __isError = Rf_inherits(__result, \" try-error\" );"
2225+ ostr << " Rboolean __isError = Rf_inherits(__result, \" try-error\" );"
22362226 << std::endl
22372227 << " if (__isError) {" << std::endl
22382228 << " SEXP __msgSEXP = Rf_asChar(__result);" << std::endl
You can’t perform that action at this time.
0 commit comments