@@ -478,6 +478,20 @@ extern "C" SEXP _cpp11test_rcpp_push_and_truncate_(SEXP size_sxp) {
478478 return cpp11::as_sexp (rcpp_push_and_truncate_ (cpp11::as_cpp<cpp11::decay_t <SEXP >>(size_sxp)));
479479 END_CPP11
480480}
481+ // test-external_pointer.cpp
482+ cpp11::external_pointer<int > nullable_extptr_1 ();
483+ extern " C" SEXP _cpp11test_nullable_extptr_1 () {
484+ BEGIN_CPP11
485+ return cpp11::as_sexp (nullable_extptr_1 ());
486+ END_CPP11
487+ }
488+ // test-external_pointer.cpp
489+ cpp11::external_pointer<int > nullable_extptr_2 ();
490+ extern " C" SEXP _cpp11test_nullable_extptr_2 () {
491+ BEGIN_CPP11
492+ return cpp11::as_sexp (nullable_extptr_2 ());
493+ END_CPP11
494+ }
481495// test-protect-nested.cpp
482496void test_destruction_inner ();
483497extern " C" SEXP _cpp11test_test_destruction_inner () {
@@ -538,6 +552,8 @@ static const R_CallMethodDef CallEntries[] = {
538552 {" _cpp11test_my_warning_n1" , (DL_FUNC ) &_cpp11test_my_warning_n1, 1 },
539553 {" _cpp11test_my_warning_n1fmt" , (DL_FUNC ) &_cpp11test_my_warning_n1fmt, 1 },
540554 {" _cpp11test_my_warning_n2fmt" , (DL_FUNC ) &_cpp11test_my_warning_n2fmt, 2 },
555+ {" _cpp11test_nullable_extptr_1" , (DL_FUNC ) &_cpp11test_nullable_extptr_1, 0 },
556+ {" _cpp11test_nullable_extptr_2" , (DL_FUNC ) &_cpp11test_nullable_extptr_2, 0 },
541557 {" _cpp11test_ordered_map_to_list_" , (DL_FUNC ) &_cpp11test_ordered_map_to_list_, 1 },
542558 {" _cpp11test_protect_many_" , (DL_FUNC ) &_cpp11test_protect_many_, 1 },
543559 {" _cpp11test_protect_many_cpp11_" , (DL_FUNC ) &_cpp11test_protect_many_cpp11_, 1 },
0 commit comments