phylopomp
Phylodynamics for POMPs
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
init.h
Go to the documentation of this file.
1 #ifndef _INIT_H_
2 #define _INIT_H_
3 
4 #include <R_ext/Rdynload.h>
5 #include "internal.h"
6 
7 #define DECLARATIONS(X) \
8  SEXP make ## X (SEXP Params, SEXP IVPs, SEXP T0); \
9  SEXP revive ## X (SEXP State, SEXP Params); \
10  SEXP run ## X (SEXP State, SEXP Times); \
11  SEXP geneal ## X (SEXP State); \
12  SEXP yaml ## X (SEXP State)
13 
14 #define METHODS(X) \
15  {"make" #X, (DL_FUNC) &make ## X, 3}, \
16  {"revive" #X, (DL_FUNC) &revive ## X, 2}, \
17  {"run" #X, (DL_FUNC) &run ## X, 2}, \
18  {"yaml" #X, (DL_FUNC) &yaml ## X, 1}, \
19  {"geneal" #X, (DL_FUNC) &geneal ## X, 1} \
20 
21 #endif