@@ -422,6 +422,13 @@ extern "C" SEXP _cpp11test_rcpp_grow_(SEXP n_sxp) {
422422 return cpp11::as_sexp (rcpp_grow_ (cpp11::as_cpp<cpp11::decay_t <SEXP>>(n_sxp)));
423423 END_CPP11
424424}
425+ // sum_rcpp.cpp
426+ SEXP rcpp_push_and_truncate_ (SEXP size_sxp);
427+ extern " C" SEXP _cpp11test_rcpp_push_and_truncate_ (SEXP size_sxp) {
428+ BEGIN_CPP11
429+ return cpp11::as_sexp (rcpp_push_and_truncate_ (cpp11::as_cpp<cpp11::decay_t <SEXP>>(size_sxp)));
430+ END_CPP11
431+ }
425432// test-protect-nested.cpp
426433void test_destruction_inner ();
427434extern " C" SEXP _cpp11test_test_destruction_inner () {
@@ -489,6 +496,7 @@ static const R_CallMethodDef CallEntries[] = {
489496 {" _cpp11test_protect_one_preserve_" , (DL_FUNC) &_cpp11test_protect_one_preserve_, 2 },
490497 {" _cpp11test_protect_one_sexp_" , (DL_FUNC) &_cpp11test_protect_one_sexp_, 2 },
491498 {" _cpp11test_rcpp_grow_" , (DL_FUNC) &_cpp11test_rcpp_grow_, 1 },
499+ {" _cpp11test_rcpp_push_and_truncate_" , (DL_FUNC) &_cpp11test_rcpp_push_and_truncate_, 1 },
492500 {" _cpp11test_rcpp_release_" , (DL_FUNC) &_cpp11test_rcpp_release_, 1 },
493501 {" _cpp11test_rcpp_sum_dbl_accumulate_" , (DL_FUNC) &_cpp11test_rcpp_sum_dbl_accumulate_, 1 },
494502 {" _cpp11test_rcpp_sum_dbl_for_" , (DL_FUNC) &_cpp11test_rcpp_sum_dbl_for_, 1 },
0 commit comments