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.
END_CPP11_EX()
1 parent aeb1895 commit 4067a44Copy full SHA for 4067a44
inst/include/cpp11/declarations.hpp
@@ -41,7 +41,7 @@ T& unmove(T&& t) {
41
SEXP err = R_NilValue; \
42
char buf[CPP11_ERROR_BUFSIZE] = ""; \
43
try {
44
-#define END_CPP11 \
+#define END_CPP11_EX(RET) \
45
} \
46
catch (cpp11::unwind_exception & e) { \
47
err = e.token; \
@@ -57,4 +57,5 @@ T& unmove(T&& t) {
57
} else if (err != R_NilValue) { \
58
R_ContinueUnwind(err); \
59
60
- return R_NilValue;
+ return RET;
61
+#define END_CPP11 END_CPP11_EX(R_NilValue)
0 commit comments