Rcpp Version 1.0.7
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 50 of file macros.h.

◆ END_RCPP

#define END_RCPP   VOID_END_RCPP return R_NilValue;

Definition at line 100 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 */

Definition at line 107 of file macros.h.

◆ RCPP_DECORATE

#define RCPP_DECORATE (   __FUN__)    __FUN__##__rcpp__wrapper__

Definition at line 45 of file macros.h.

◆ Rcpp_error

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

Definition at line 126 of file macros.h.

◆ RCPP_GET_CLASS

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

Definition at line 47 of file macros.h.

◆ RCPP_GET_NAMES

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

Definition at line 46 of file macros.h.

◆ VOID_END_RCPP

#define VOID_END_RCPP

Definition at line 61 of file macros.h.

Rcpp::LongjumpException
Definition: exceptions.h:164
Rcpp::internal::longjumpSentinel
SEXP longjumpSentinel(SEXP token)
Definition: exceptions.h:126
string_to_try_error
SEXP string_to_try_error(const std::string &str)
Definition: exceptions.h:356
Rcpp::LongjumpException::token
SEXP token
Definition: exceptions.h:165
Rcpp::internal::InterruptedException
Definition: Interrupt.h:33
Rcpp::internal::interruptedError
SEXP interruptedError()
Definition: Interrupt.h:40
exception_to_try_error
SEXP exception_to_try_error(const std::exception &ex)
Definition: exceptions.h:376