We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb1fa3d commit 0362a37Copy full SHA for 0362a37
1 file changed
src/init.c
@@ -13,6 +13,23 @@ SEXP processx__echo_on(void);
13
SEXP processx__echo_off(void);
14
SEXP processx__set_boot_time(SEXP);
15
16
+#ifdef GCOV_COMPILE
17
+
18
+void __gcov_dump();
19
+SEXP gcov_flush() {
20
+ REprintf("Flushing coverage info\n");
21
+ __gcov_dump();
22
+ return R_NilValue;
23
+}
24
25
+#else
26
27
+SEXP gcov_flush(void) {
28
29
30
31
+#endif
32
33
static const R_CallMethodDef callMethods[] = {
34
CLEANCALL_METHOD_RECORD,
35
{ "processx_exec", (DL_FUNC) &processx_exec, 14 },
@@ -73,6 +90,8 @@ static const R_CallMethodDef callMethods[] = {
73
90
{ "processx__echo_on", (DL_FUNC) &processx__echo_on, 0 },
74
91
{ "processx__echo_off", (DL_FUNC) &processx__echo_off, 0 },
75
92
93
+ { "gcov_flush", (DL_FUNC) gcov_flush, 0 },
94
76
95
{ NULL, NULL, 0 }
77
96
};
78
97
0 commit comments