FIMS  v0.9.3
Loading...
Searching...
No Matches
config.h
1// RTMB configuration to include by TMB.h
2
3// Prevent Rcpp from masking valid uses of Rf_error
4#undef RCPP_NO_MASK_RF_ERROR
5#define RCPP_NO_MASK_RF_ERROR
6#include <Rcpp.h>
7// Any failed internal assertion sends Rcpp::exception
8#define TMB_ABORT Rcpp::stop("TMB unexpected")
9// Catch *all* std exceptions (not just bad_alloc)
10#define TMB_CATCH catch(std::exception& excpt)
11// Do not include TMB's thread-safe workarounds
12#ifdef _OPENMP
13#define TMB_HAVE_THREAD_SAFE_R
14#endif
15// Use TMBad
16#define TMBAD_FRAMEWORK
17// Use 64 bit integers to ensure sizeof(ad)=16 (128 bit)
18#define TMBAD_INDEX_TYPE uint64_t
19// Enable out-of-bounds checking
20#define TMB_SAFEBOUNDS
21// TMB FIXME: Some occurrences of ASSERT and ASSERT2
22#undef ASSERT
23#define ASSERT(x) TMBAD_ASSERT(x)
24#undef ASSERT2
25#define ASSERT2(x, msg) TMBAD_ASSERT2(x, msg)