@@ -373,6 +373,41 @@ extern "C" SEXP _cpp11test_string_push_back_() {
373373 return cpp11::as_sexp (string_push_back_ ());
374374 END_CPP11
375375}
376+ // strings.cpp
377+ cpp11::strings grow_strings_cpp11_ (size_t n, int seed);
378+ extern " C" SEXP _cpp11test_grow_strings_cpp11_ (SEXP n, SEXP seed) {
379+ BEGIN_CPP11
380+ return cpp11::as_sexp (grow_strings_cpp11_ (cpp11::as_cpp<cpp11::decay_t <size_t >>(n), cpp11::as_cpp<cpp11::decay_t <int >>(seed)));
381+ END_CPP11
382+ }
383+ // strings.cpp
384+ Rcpp::CharacterVector grow_strings_rcpp_ (size_t n, int seed);
385+ extern " C" SEXP _cpp11test_grow_strings_rcpp_ (SEXP n, SEXP seed) {
386+ BEGIN_CPP11
387+ return cpp11::as_sexp (grow_strings_rcpp_ (cpp11::as_cpp<cpp11::decay_t <size_t >>(n), cpp11::as_cpp<cpp11::decay_t <int >>(seed)));
388+ END_CPP11
389+ }
390+ // strings.cpp
391+ SEXP grow_strings_manual_ (size_t n, int seed);
392+ extern " C" SEXP _cpp11test_grow_strings_manual_ (SEXP n, SEXP seed) {
393+ BEGIN_CPP11
394+ return cpp11::as_sexp (grow_strings_manual_ (cpp11::as_cpp<cpp11::decay_t <size_t >>(n), cpp11::as_cpp<cpp11::decay_t <int >>(seed)));
395+ END_CPP11
396+ }
397+ // strings.cpp
398+ cpp11::strings assign_cpp11_ (size_t n, int seed);
399+ extern " C" SEXP _cpp11test_assign_cpp11_ (SEXP n, SEXP seed) {
400+ BEGIN_CPP11
401+ return cpp11::as_sexp (assign_cpp11_ (cpp11::as_cpp<cpp11::decay_t <size_t >>(n), cpp11::as_cpp<cpp11::decay_t <int >>(seed)));
402+ END_CPP11
403+ }
404+ // strings.cpp
405+ Rcpp::CharacterVector assign_rcpp_ (size_t n, int seed);
406+ extern " C" SEXP _cpp11test_assign_rcpp_ (SEXP n, SEXP seed) {
407+ BEGIN_CPP11
408+ return cpp11::as_sexp (assign_rcpp_ (cpp11::as_cpp<cpp11::decay_t <size_t >>(n), cpp11::as_cpp<cpp11::decay_t <int >>(seed)));
409+ END_CPP11
410+ }
376411// sum.cpp
377412double sum_dbl_for_ (cpp11::doubles x);
378413extern " C" SEXP _cpp11test_sum_dbl_for_ (SEXP x) {
@@ -492,6 +527,20 @@ extern "C" SEXP _cpp11test_rcpp_push_and_truncate_(SEXP size_sxp) {
492527 return cpp11::as_sexp (rcpp_push_and_truncate_ (cpp11::as_cpp<cpp11::decay_t <SEXP>>(size_sxp)));
493528 END_CPP11
494529}
530+ // test-external_pointer.cpp
531+ cpp11::external_pointer<int > nullable_extptr_1 ();
532+ extern " C" SEXP _cpp11test_nullable_extptr_1 () {
533+ BEGIN_CPP11
534+ return cpp11::as_sexp (nullable_extptr_1 ());
535+ END_CPP11
536+ }
537+ // test-external_pointer.cpp
538+ cpp11::external_pointer<int > nullable_extptr_2 ();
539+ extern " C" SEXP _cpp11test_nullable_extptr_2 () {
540+ BEGIN_CPP11
541+ return cpp11::as_sexp (nullable_extptr_2 ());
542+ END_CPP11
543+ }
495544// test-protect-nested.cpp
496545void test_destruction_inner ();
497546extern " C" SEXP _cpp11test_test_destruction_inner () {
@@ -521,6 +570,8 @@ extern "C" {
521570extern SEXP run_testthat_tests (SEXP);
522571
523572static const R_CallMethodDef CallEntries[] = {
573+ {" _cpp11test_assign_cpp11_" , (DL_FUNC) &_cpp11test_assign_cpp11_, 2 },
574+ {" _cpp11test_assign_rcpp_" , (DL_FUNC) &_cpp11test_assign_rcpp_, 2 },
524575 {" _cpp11test_col_sums" , (DL_FUNC) &_cpp11test_col_sums, 1 },
525576 {" _cpp11test_cpp11_add_vec_for_" , (DL_FUNC) &_cpp11test_cpp11_add_vec_for_, 2 },
526577 {" _cpp11test_cpp11_insert_" , (DL_FUNC) &_cpp11test_cpp11_insert_, 1 },
@@ -537,6 +588,9 @@ static const R_CallMethodDef CallEntries[] = {
537588 {" _cpp11test_gibbs_rcpp" , (DL_FUNC) &_cpp11test_gibbs_rcpp, 2 },
538589 {" _cpp11test_gibbs_rcpp2" , (DL_FUNC) &_cpp11test_gibbs_rcpp2, 2 },
539590 {" _cpp11test_grow_" , (DL_FUNC) &_cpp11test_grow_, 1 },
591+ {" _cpp11test_grow_strings_cpp11_" , (DL_FUNC) &_cpp11test_grow_strings_cpp11_, 2 },
592+ {" _cpp11test_grow_strings_manual_" , (DL_FUNC) &_cpp11test_grow_strings_manual_, 2 },
593+ {" _cpp11test_grow_strings_rcpp_" , (DL_FUNC) &_cpp11test_grow_strings_rcpp_, 2 },
540594 {" _cpp11test_my_message" , (DL_FUNC) &_cpp11test_my_message, 2 },
541595 {" _cpp11test_my_message_n1" , (DL_FUNC) &_cpp11test_my_message_n1, 1 },
542596 {" _cpp11test_my_message_n1fmt" , (DL_FUNC) &_cpp11test_my_message_n1fmt, 1 },
@@ -549,8 +603,8 @@ static const R_CallMethodDef CallEntries[] = {
549603 {" _cpp11test_my_warning_n1" , (DL_FUNC) &_cpp11test_my_warning_n1, 1 },
550604 {" _cpp11test_my_warning_n1fmt" , (DL_FUNC) &_cpp11test_my_warning_n1fmt, 1 },
551605 {" _cpp11test_my_warning_n2fmt" , (DL_FUNC) &_cpp11test_my_warning_n2fmt, 2 },
552- {" _cpp11test_notroxcpp1_ " , (DL_FUNC) &_cpp11test_notroxcpp1_ , 1 },
553- {" _cpp11test_notroxcpp6_ " , (DL_FUNC) &_cpp11test_notroxcpp6_ , 1 },
606+ {" _cpp11test_nullable_extptr_1 " , (DL_FUNC) &_cpp11test_nullable_extptr_1 , 0 },
607+ {" _cpp11test_nullable_extptr_2 " , (DL_FUNC) &_cpp11test_nullable_extptr_2 , 0 },
554608 {" _cpp11test_protect_many_" , (DL_FUNC) &_cpp11test_protect_many_, 1 },
555609 {" _cpp11test_protect_many_cpp11_" , (DL_FUNC) &_cpp11test_protect_many_cpp11_, 1 },
556610 {" _cpp11test_protect_many_preserve_" , (DL_FUNC) &_cpp11test_protect_many_preserve_, 1 },
0 commit comments