We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0441b5 commit 583fcf2Copy full SHA for 583fcf2
inst/include/cpp11/declarations.hpp
@@ -43,7 +43,7 @@ T& unmove(T&& t) {
43
SEXP err = R_NilValue; \
44
char buf[CPP11_ERROR_BUFSIZE] = ""; \
45
try {
46
-#define END_CPP11 \
+#define END_CPP11_EX(RET) \
47
} \
48
catch (cpp11::unwind_exception & e) { \
49
err = e.token; \
@@ -59,4 +59,5 @@ T& unmove(T&& t) {
59
} else if (err != R_NilValue) { \
60
R_ContinueUnwind(err); \
61
62
- return R_NilValue;
+ return RET;
63
+#define END_CPP11 END_CPP11_EX(R_NilValue)
0 commit comments