Rcpp Version 1.1.2
Loading...
Searching...
No Matches
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

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

Macros

#define RCPP_DECORATE(__FUN__)
#define RCPP_GET_NAMES(x)
#define RCPP_GET_CLASS(x)
#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)

Functions

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

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)"); \
} \
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:397
SEXP string_to_try_error(const std::string &str)
Definition exceptions.h:377
SEXP interruptedError()
Definition Interrupt.h:40
SEXP longjumpSentinel(SEXP token)
Definition exceptions.h:128

Definition at line 106 of file macros.h.

◆ RCPP_DECORATE

#define RCPP_DECORATE ( __FUN__)
Value:
__FUN__##__rcpp__wrapper__

Definition at line 44 of file macros.h.

◆ Rcpp_error

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

Definition at line 125 of file macros.h.

◆ RCPP_GET_CLASS

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

Definition at line 46 of file macros.h.

◆ RCPP_GET_NAMES

◆ VOID_END_RCPP

#define VOID_END_RCPP

Definition at line 60 of file macros.h.

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