Rcpp Version 1.0.0
macros.h File Reference
Include dependency graph for macros.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define RCPP_DECORATE(__FUN__)   __FUN__##__rcpp__wrapper__
 
#define RCPP_GET_NAMES(x)   Rf_getAttrib(x, R_NamesSymbol)
 
#define RCPP_GET_CLASS(x)   Rf_getAttrib(x, R_ClassSymbol)
 
#define BEGIN_RCPP
 
#define VOID_END_RCPP
 
#define END_RCPP   VOID_END_RCPP return R_NilValue;
 
#define END_RCPP_RETURN_ERROR
 
#define Rcpp_error(MESSAGE)   throw Rcpp::exception(MESSAGE, __FILE__, __LINE__)
 

Macro Definition Documentation

◆ BEGIN_RCPP

◆ END_RCPP

◆ END_RCPP_RETURN_ERROR

#define END_RCPP_RETURN_ERROR
Value:
} \
} \
catch (Rcpp::LongjumpException& __ex__) { \
} \
catch (std::exception &__ex__) { \
return exception_to_try_error(__ex__); \
} \
catch (...) { \
return string_to_try_error("c++ exception (unknown reason)"); \
} \
return R_NilValue;
SEXP interruptedError()
Definition: Interrupt.h:40
SEXP exception_to_try_error(const std::exception &ex)
Definition: exceptions.h:367
SEXP longjumpSentinel(SEXP token)
Definition: exceptions.h:122
SEXP string_to_try_error(const std::string &str)
Definition: exceptions.h:347

Definition at line 81 of file macros.h.

◆ RCPP_DECORATE

#define RCPP_DECORATE (   __FUN__)    __FUN__##__rcpp__wrapper__

Definition at line 25 of file macros.h.

◆ Rcpp_error

#define Rcpp_error (   MESSAGE)    throw Rcpp::exception(MESSAGE, __FILE__, __LINE__)

Definition at line 98 of file macros.h.

◆ RCPP_GET_CLASS

#define RCPP_GET_CLASS (   x)    Rf_getAttrib(x, R_ClassSymbol)

Definition at line 27 of file macros.h.

◆ RCPP_GET_NAMES

◆ VOID_END_RCPP

#define VOID_END_RCPP

Definition at line 39 of file macros.h.

Referenced by class_< Class >::setProperty().