-
-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for throwing exceptions without call stacks. #663
Added support for throwing exceptions without call stacks. #663
Conversation
Did you see Contributing.md ? |
dc7694c
to
a15ba45
Compare
Yes, but not until this was already implemented, since it was already done might as well look at the code |
Codecov Report
@@ Coverage Diff @@
## master #663 +/- ##
=======================================
Coverage 92.91% 92.91%
=======================================
Files 65 65
Lines 3303 3303
=======================================
Hits 3069 3069
Misses 234 234
Continue to review full report at Codecov.
|
Meant to reopen this earlier after we all seemed to have reached consensus on #664, but got sidetracked. |
This looks fine to me. Any other takers? |
+1 |
commit 43e53b0 Merge: 886f5df a15ba45 Author: Dirk Eddelbuettel <edd@debian.org> Date: Tue Apr 11 13:20:10 2017 -0500 Merge pull request #663 from jimhester/exceptions_without_callstacks Added support for throwing exceptions without call stacks. commit a15ba45 Author: Jim Hester <james.f.hester@gmail.com> Date: Mon Apr 3 16:11:24 2017 -0400 Added support for throwing exceptions without call stacks.
There is currently no way to generate an exception from Rcpp which does not have an attached R (and cpp) call stacks. This extra information can be confusing for users, so it is useful to be able to disable it if desired (like
stop(call. = FALSE)
does in R code.This could be implemented by providing overloaded
forward_exception_to_r()
andexception_to_r_condition()
functions forRcpp::exceptions
, but I felt like it made the intention more clear to define new functions instead.