Skip to content

Commit d0c1744

Browse files
committed
Add registration again.
1 parent 3ada8a4 commit d0c1744

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/init.c

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#include <R.h>
2+
#include <Rinternals.h>
3+
#include <stdlib.h> // for NULL
4+
#include <R_ext/Rdynload.h>
5+
6+
/* FIXME:
7+
Check these declarations against the C/Fortran source code.
8+
*/
9+
10+
/* .Call calls */
11+
extern SEXP defaultNumThreads();
12+
extern SEXP setThreadOptions(SEXP, SEXP);
13+
14+
static const R_CallMethodDef CallEntries[] = {
15+
{"defaultNumThreads", (DL_FUNC) &defaultNumThreads, 0},
16+
{"setThreadOptions", (DL_FUNC) &setThreadOptions, 2},
17+
{NULL, NULL, 0}
18+
};
19+
20+
void R_init_RcppParallel(DllInfo *dll)
21+
{
22+
R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
23+
R_useDynamicSymbols(dll, FALSE);
24+
}

0 commit comments

Comments
 (0)