Skip to content

Commit 0f30c00

Browse files
committed
Make it clear we don't use the globals
1 parent 8140be4 commit 0f30c00

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

crates/ark/src/debug.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ use harp::utils::r_str_to_owned_utf8_unchecked;
88
use crate::interface::RMain;
99
use crate::interface::CAPTURE_CONSOLE_OUTPUT;
1010

11-
// Ensure the compiler includes the C entry points in `debug.c` in the binary.
12-
// We store function pointers in global variables that are declared "used". The
13-
// compiler is able to follow the chain of dependency from these variables to
14-
// the C functions and ultimately their Rust implementations defined below.
15-
11+
// To ensure the compiler includes the C entry points in `debug.c` in the binary,
12+
// we store function pointers in global variables that are declared "used" (even
13+
// though we never actually use them). The compiler is able to follow the chain
14+
// of dependency from these variables to the C functions and ultimately their
15+
// Rust implementations defined below.
1616
extern "C" {
1717
fn ark_print(x: libr::SEXP) -> *const ffi::c_char;
1818
fn ark_inspect(x: libr::SEXP) -> *const ffi::c_char;

0 commit comments

Comments
 (0)