File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ $(OBJECTS): build-static
4242build-static:
4343 @mkdir -p ../inst/include/quickjs
4444 @cp $(wildcard quickjs/*.h) ../inst/include/quickjs
45- $(R_CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -funsigned-char -std=gnu11 -c libquickjs.c
45+ $(R_CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -DNDEBUG - funsigned-char -std=gnu11 -c libquickjs.c
4646 @mkdir -p ../inst/lib/$(R_ARCH)
4747 $(AR) -rs ../inst/lib/$(R_ARCH)/libquickjs.a libquickjs.o
4848
Original file line number Diff line number Diff line change 1+ #include <stdio.h>
2+
3+ void Rf_error (const char * fmt , ...);
4+ void Rprintf (const char * fmt , ...);
5+
6+ void Rf_abort (void ) {
7+ Rf_error ("Aborted!" );
8+ }
9+
10+ void Rf_exit (int status ) {
11+ Rf_error ("Exit with status %d" , status );
12+ }
13+
14+ #define abort Rf_abort
15+ #define exit Rf_exit
16+ #define printf Rprintf
17+
118#include "quickjs/cutils.c"
219#include "quickjs/libbf.c"
320#include "quickjs/libregexp.c"
You can’t perform that action at this time.
0 commit comments