25 #ifndef OACOMMONDEFINES_H
26 #define OACOMMONDEFINES_H
39 #include "RWarningException.h"
46 #define PRINT_OUTPUT Rcpp::Rcout
50 #define PRINT_WARNINGS false
55 #define PRINT_OUTPUT std::cout
59 #define PRINT_WARNINGS true
74 #define SUCCESS_CHECK 1
78 #define FAILURE_CHECK 0
82 #define UNCHECKED_RETURN 0
95 const std::string smsg = msg.str();
96 throw std::runtime_error(smsg.c_str());
106 const std::string smsg = msg.str();
114 throw bclib::RWarningException(smsg);