Rcpp Version 1.0.9
macros.h File Reference
#include <string>
#include <Rcpp/macros/debug.h>
#include <Rcpp/macros/unroll.h>
#include <Rcpp/macros/dispatch.h>
#include <Rcpp/macros/xp.h>
#include <Rcpp/macros/traits.h>
#include <Rcpp/macros/config.hpp>
#include <Rcpp/macros/cat.hpp>
#include <Rcpp/macros/module.h>
#include <Rcpp/macros/interface.h>
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.

Namespaces

 Rcpp
 Rcpp API.
 
 Rcpp::internal
 internal implementation details
 
 Rcpp::internal::debug
 

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__)
 

Functions

std::string Rcpp::internal::debug::short_file_name (const char *file)
 

Macro Definition Documentation

◆ BEGIN_RCPP

#define BEGIN_RCPP
Value:
int rcpp_output_type = 0 ; \
int nprot = 0; \
(void)rcpp_output_type; \
SEXP rcpp_output_condition = R_NilValue ; \
(void)rcpp_output_condition; \
static SEXP stop_sym = Rf_install("stop"); \
try {

Definition at line 49 of file macros.h.

◆ END_RCPP

#define END_RCPP   VOID_END_RCPP return R_NilValue;

Definition at line 99 of file macros.h.

◆ 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)"); \
} \
UNPROTECT(nprot); \
return R_NilValue; \
(void) stop_sym; /* never reached but suppresses warning */
SEXP exception_to_try_error(const std::exception &ex)
Definition: exceptions.h:376
SEXP string_to_try_error(const std::string &str)
Definition: exceptions.h:356
SEXP interruptedError()
Definition: Interrupt.h:40
SEXP longjumpSentinel(SEXP token)
Definition: exceptions.h:126

Definition at line 106 of file macros.h.

◆ RCPP_DECORATE

#define RCPP_DECORATE (   __FUN__)    __FUN__##__rcpp__wrapper__

Definition at line 44 of file macros.h.

◆ Rcpp_error

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

Definition at line 125 of file macros.h.

◆ RCPP_GET_CLASS

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

Definition at line 46 of file macros.h.

◆ RCPP_GET_NAMES

#define RCPP_GET_NAMES (   x)    Rf_getAttrib(x, R_NamesSymbol)

Definition at line 45 of file macros.h.

◆ VOID_END_RCPP

#define VOID_END_RCPP

Definition at line 60 of file macros.h.