FIMS  v0.9.3
Loading...
Searching...
No Matches
init_tmb.hpp
Go to the documentation of this file.
1
8#ifndef SRC_INIT_HPP
9#define SRC_INIT_HPP
10
11#include <stdlib.h>
12#include <Rcpp.h>
13#include <R_ext/Rdynload.h>
14
15#ifdef FIMS_ONLOAD_INIT_TMB
22extern "C" SEXP fims_post_load_init_tmb() {
23#ifdef TMB_CCALLABLES
24 Rprintf("** Initializing TMB C callables for FIMS...\n");
25 TMB_CCALLABLES("FIMS");
26#endif
27 return R_NilValue;
28}
29
30#else
31
32extern "C" {
33
40
44static const R_CallMethodDef CallEntries[] = {
46 {"_rcpp_module_boot_fims", (DL_FUNC)&_rcpp_module_boot_fims, 0},
47 {NULL, NULL, 0}};
48
54 R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
56#ifdef TMB_CCALLABLES
57 TMB_CCALLABLES("FIMS");
58#endif
59}
60}
61
62#endif // FIMS_ONLOAD_INIT_TMB
63
64#endif // SRC_INIT_HPP
__attribute__((visibility("default"))) void R_init_FIMS(DllInfo *dll)
FIMS shared object initializer.
Definition init_tmb.hpp:53
SEXP _rcpp_module_boot_fims()
TODO: Handles the initialization of the fims rcpp module.
void clear_internal()
Clears the internal objects.
Definition rcpp_interface.hpp:235