@@ -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 () {
@@ -438,6 +445,13 @@ extern "C" SEXP _cpp11test_test_destruction_outer() {
438445 return R_NilValue;
439446 END_CPP11
440447}
448+ // truncate.cpp
449+ SEXP cpp11_push_and_truncate_ (SEXP size_sexp);
450+ extern " C" SEXP _cpp11test_cpp11_push_and_truncate_ (SEXP size_sexp) {
451+ BEGIN_CPP11
452+ return cpp11::as_sexp (cpp11_push_and_truncate_ (cpp11::as_cpp<cpp11::decay_t <SEXP>>(size_sexp)));
453+ END_CPP11
454+ }
441455
442456extern " C" {
443457/* .Call calls */
@@ -447,6 +461,7 @@ static const R_CallMethodDef CallEntries[] = {
447461 {" _cpp11test_col_sums" , (DL_FUNC) &_cpp11test_col_sums, 1 },
448462 {" _cpp11test_cpp11_add_vec_for_" , (DL_FUNC) &_cpp11test_cpp11_add_vec_for_, 2 },
449463 {" _cpp11test_cpp11_insert_" , (DL_FUNC) &_cpp11test_cpp11_insert_, 1 },
464+ {" _cpp11test_cpp11_push_and_truncate_" , (DL_FUNC) &_cpp11test_cpp11_push_and_truncate_, 1 },
450465 {" _cpp11test_cpp11_release_" , (DL_FUNC) &_cpp11test_cpp11_release_, 1 },
451466 {" _cpp11test_cpp11_safe_" , (DL_FUNC) &_cpp11test_cpp11_safe_, 1 },
452467 {" _cpp11test_data_frame_" , (DL_FUNC) &_cpp11test_data_frame_, 0 },
@@ -481,6 +496,7 @@ static const R_CallMethodDef CallEntries[] = {
481496 {" _cpp11test_protect_one_preserve_" , (DL_FUNC) &_cpp11test_protect_one_preserve_, 2 },
482497 {" _cpp11test_protect_one_sexp_" , (DL_FUNC) &_cpp11test_protect_one_sexp_, 2 },
483498 {" _cpp11test_rcpp_grow_" , (DL_FUNC) &_cpp11test_rcpp_grow_, 1 },
499+ {" _cpp11test_rcpp_push_and_truncate_" , (DL_FUNC) &_cpp11test_rcpp_push_and_truncate_, 1 },
484500 {" _cpp11test_rcpp_release_" , (DL_FUNC) &_cpp11test_rcpp_release_, 1 },
485501 {" _cpp11test_rcpp_sum_dbl_accumulate_" , (DL_FUNC) &_cpp11test_rcpp_sum_dbl_accumulate_, 1 },
486502 {" _cpp11test_rcpp_sum_dbl_for_" , (DL_FUNC) &_cpp11test_rcpp_sum_dbl_for_, 1 },
0 commit comments