@@ -443,6 +443,20 @@ extern "C" SEXP _cpp11test_rcpp_push_and_truncate_(SEXP size_sxp) {
443443 return cpp11::as_sexp (rcpp_push_and_truncate_ (cpp11::as_cpp<cpp11::decay_t <SEXP>>(size_sxp)));
444444 END_CPP11
445445}
446+ // test-external_pointer.cpp
447+ cpp11::external_pointer<int > nullable_extptr_1 ();
448+ extern " C" SEXP _cpp11test_nullable_extptr_1 () {
449+ BEGIN_CPP11
450+ return cpp11::as_sexp (nullable_extptr_1 ());
451+ END_CPP11
452+ }
453+ // test-external_pointer.cpp
454+ cpp11::external_pointer<int > nullable_extptr_2 ();
455+ extern " C" SEXP _cpp11test_nullable_extptr_2 () {
456+ BEGIN_CPP11
457+ return cpp11::as_sexp (nullable_extptr_2 ());
458+ END_CPP11
459+ }
446460// test-protect-nested.cpp
447461void test_destruction_inner ();
448462extern " C" SEXP _cpp11test_test_destruction_inner () {
@@ -500,6 +514,8 @@ static const R_CallMethodDef CallEntries[] = {
500514 {" _cpp11test_my_warning_n1" , (DL_FUNC) &_cpp11test_my_warning_n1, 1 },
501515 {" _cpp11test_my_warning_n1fmt" , (DL_FUNC) &_cpp11test_my_warning_n1fmt, 1 },
502516 {" _cpp11test_my_warning_n2fmt" , (DL_FUNC) &_cpp11test_my_warning_n2fmt, 2 },
517+ {" _cpp11test_nullable_extptr_1" , (DL_FUNC) &_cpp11test_nullable_extptr_1, 0 },
518+ {" _cpp11test_nullable_extptr_2" , (DL_FUNC) &_cpp11test_nullable_extptr_2, 0 },
503519 {" _cpp11test_protect_many_" , (DL_FUNC) &_cpp11test_protect_many_, 1 },
504520 {" _cpp11test_protect_many_cpp11_" , (DL_FUNC) &_cpp11test_protect_many_cpp11_, 1 },
505521 {" _cpp11test_protect_many_preserve_" , (DL_FUNC) &_cpp11test_protect_many_preserve_, 1 },
0 commit comments