Skip to content

Commit 81ea2cf

Browse files
committed
Additional wrappers
1 parent 790f360 commit 81ea2cf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libquickjs.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include <R_ext/Error.h>
2-
#include <stdio.h>
32
#include <R_ext/Print.h>
43

54
void Rf_abort() {
@@ -14,7 +13,7 @@ void Rf_exit(int code) {
1413
#define exit Rf_exit
1514
#define _exit Rf_exit
1615
#define fprintf(file, ...) Rprintf(__VA_ARGS__)
17-
#define putchar Rprintf
16+
#define putchar(c) Rprintf("%s", c)
1817
#define stderr NULL
1918
#define stdout NULL
2019

0 commit comments

Comments
 (0)