@@ -422,6 +422,13 @@ extern "C" SEXP _cpp11test_rcpp_grow_(SEXP n_sxp) {
422
422
return cpp11::as_sexp (rcpp_grow_ (cpp11::as_cpp<cpp11::decay_t <SEXP>>(n_sxp)));
423
423
END_CPP11
424
424
}
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
+ }
425
432
// test-protect-nested.cpp
426
433
void test_destruction_inner ();
427
434
extern " C" SEXP _cpp11test_test_destruction_inner () {
@@ -438,6 +445,13 @@ extern "C" SEXP _cpp11test_test_destruction_outer() {
438
445
return R_NilValue;
439
446
END_CPP11
440
447
}
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
+ }
441
455
442
456
extern " C" {
443
457
/* .Call calls */
@@ -447,6 +461,7 @@ static const R_CallMethodDef CallEntries[] = {
447
461
{" _cpp11test_col_sums" , (DL_FUNC) &_cpp11test_col_sums, 1 },
448
462
{" _cpp11test_cpp11_add_vec_for_" , (DL_FUNC) &_cpp11test_cpp11_add_vec_for_, 2 },
449
463
{" _cpp11test_cpp11_insert_" , (DL_FUNC) &_cpp11test_cpp11_insert_, 1 },
464
+ {" _cpp11test_cpp11_push_and_truncate_" , (DL_FUNC) &_cpp11test_cpp11_push_and_truncate_, 1 },
450
465
{" _cpp11test_cpp11_release_" , (DL_FUNC) &_cpp11test_cpp11_release_, 1 },
451
466
{" _cpp11test_cpp11_safe_" , (DL_FUNC) &_cpp11test_cpp11_safe_, 1 },
452
467
{" _cpp11test_data_frame_" , (DL_FUNC) &_cpp11test_data_frame_, 0 },
@@ -481,6 +496,7 @@ static const R_CallMethodDef CallEntries[] = {
481
496
{" _cpp11test_protect_one_preserve_" , (DL_FUNC) &_cpp11test_protect_one_preserve_, 2 },
482
497
{" _cpp11test_protect_one_sexp_" , (DL_FUNC) &_cpp11test_protect_one_sexp_, 2 },
483
498
{" _cpp11test_rcpp_grow_" , (DL_FUNC) &_cpp11test_rcpp_grow_, 1 },
499
+ {" _cpp11test_rcpp_push_and_truncate_" , (DL_FUNC) &_cpp11test_rcpp_push_and_truncate_, 1 },
484
500
{" _cpp11test_rcpp_release_" , (DL_FUNC) &_cpp11test_rcpp_release_, 1 },
485
501
{" _cpp11test_rcpp_sum_dbl_accumulate_" , (DL_FUNC) &_cpp11test_rcpp_sum_dbl_accumulate_, 1 },
486
502
{" _cpp11test_rcpp_sum_dbl_for_" , (DL_FUNC) &_cpp11test_rcpp_sum_dbl_for_, 1 },
0 commit comments