Skip to content

Commit

Permalink
format strings
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Nov 28, 2023
1 parent 500f642 commit 2ed41b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inst/include/cpp11/protect.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,9 @@ static struct {
void print() {
static SEXP list = get_preserve_list();
for (SEXP cell = list; cell != R_NilValue; cell = CDR(cell)) {
REprintf("%x CAR: %x CDR: %x TAG: %x\n", cell, CAR(cell), CDR(cell), TAG(cell));
REprintf("%p CAR: %p CDR: %p TAG: %p\n", reinterpret_cast<void*>(cell),
reinterpret_cast<void*>(CAR(cell)), reinterpret_cast<void*>(CDR(cell)),
reinterpret_cast<void*>(TAG(cell)));
}
REprintf("---\n");
}
Expand Down

0 comments on commit 2ed41b2

Please sign in to comment.