MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / unwound_t

Method unwound_t

inst/tinytest/testRcppInterfaceUser/src/unwound.h:10–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9struct unwound_t {
10 unwound_t(std::string flag_) {
11 flag = flag_;
12 Rcpp::Rcout << "Initialising " << flag << std::endl;
13 Rcpp::Environment ns = Rcpp::Environment::namespace_env(PKG_NAME);
14 flags_env = ns["flags"];
15 flags_env[flag] = false;
16 }
17 ~unwound_t() {
18 Rcpp::Rcout << "Unwinding " << flag << std::endl;
19 flags_env[flag] = true;

Callers

nothing calls this directly

Calls 1

namespace_envFunction · 0.85

Tested by

no test coverage detected