src/init.cpp
raw| 1 | #include "compile.h" |
| 2 | #include <R_ext/Rdynload.h> |
| 3 | |
| 4 | static const R_CallMethodDef callMethods[] = { |
| 5 | {"C_compile_file", (DL_FUNC) &compile_file, 2}, |
| 6 | {"C_compile_data", (DL_FUNC) &compile_data, 2}, |
| 7 | {NULL, NULL, 0} |
| 8 | }; |
| 9 | |
| 10 | extern "C" void R_init_sass(DllInfo* info) { |
| 11 | R_registerRoutines(info, NULL, callMethods, NULL, NULL); |
| 12 | R_useDynamicSymbols(info, FALSE); |
| 13 | R_forceSymbols(info, TRUE); |
| 14 | } |