Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Annotate stop() with NORET#487

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
eddelbuettel merged 4 commits intoRcppCore:masterfromkrlmlr:486-noret
Jun 2, 2016
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NextNext commit
annotate stop() with NORET
  • Loading branch information
Kirill Müller committedJun 1, 2016
commiteca8f4fae2f88be536d19137bbf5698a562c36a7
22 changes: 11 additions & 11 deletionsinst/include/Rcpp/exceptions.h
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -247,57 +247,57 @@ namespace Rcpp{
Rf_warning( tfm::format(fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10).c_str() );
}

inline void stop(const std::string& message) {
inline voidNORETstop(const std::string& message) {
throw Rcpp::exception(message.c_str());
}

template <typename T1>
inline void stop(const char* fmt, const T1& arg1) {
inline voidNORETstop(const char* fmt, const T1& arg1) {
throw Rcpp::exception( tfm::format(fmt, arg1 ).c_str() );
}

template <typename T1, typename T2>
inline void stop(const char* fmt, const T1& arg1, const T2& arg2) {
inline voidNORETstop(const char* fmt, const T1& arg1, const T2& arg2) {
throw Rcpp::exception( tfm::format(fmt, arg1, arg2 ).c_str() );
}

template <typename T1, typename T2, typename T3>
inline void stop(const char* fmt, const T1& arg1, const T2& arg2, const T3& arg3) {
inline voidNORETstop(const char* fmt, const T1& arg1, const T2& arg2, const T3& arg3) {
throw Rcpp::exception( tfm::format(fmt, arg1, arg2, arg3).c_str() );
}

template <typename T1, typename T2, typename T3, typename T4>
inline void stop(const char* fmt, const T1& arg1, const T2& arg2, const T3& arg3, const T4& arg4) {
inline voidNORETstop(const char* fmt, const T1& arg1, const T2& arg2, const T3& arg3, const T4& arg4) {
throw Rcpp::exception( tfm::format(fmt, arg1, arg2, arg3, arg4).c_str() );
}

template <typename T1, typename T2, typename T3, typename T4, typename T5>
inline void stop(const char* fmt, const T1& arg1, const T2& arg2, const T3& arg3, const T4& arg4, const T5& arg5) {
inline voidNORETstop(const char* fmt, const T1& arg1, const T2& arg2, const T3& arg3, const T4& arg4, const T5& arg5) {
throw Rcpp::exception( tfm::format(fmt, arg1, arg2, arg3, arg4, arg5).c_str() );
}

template <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6>
inline void stop(const char* fmt, const T1& arg1, const T2& arg2, const T3& arg3, const T4& arg4, const T5& arg5, const T6& arg6) {
inline voidNORETstop(const char* fmt, const T1& arg1, const T2& arg2, const T3& arg3, const T4& arg4, const T5& arg5, const T6& arg6) {
throw Rcpp::exception( tfm::format(fmt, arg1, arg2, arg3, arg4, arg5, arg6).c_str() );
}

template <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7>
inline void stop(const char* fmt, const T1& arg1, const T2& arg2, const T3& arg3, const T4& arg4, const T5& arg5, const T6& arg6, const T7& arg7) {
inline voidNORETstop(const char* fmt, const T1& arg1, const T2& arg2, const T3& arg3, const T4& arg4, const T5& arg5, const T6& arg6, const T7& arg7) {
throw Rcpp::exception( tfm::format(fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7).c_str() );
}

template <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8>
inline void stop(const char* fmt, const T1& arg1, const T2& arg2, const T3& arg3, const T4& arg4, const T5& arg5, const T6& arg6, const T7& arg7, const T8& arg8) {
inline voidNORETstop(const char* fmt, const T1& arg1, const T2& arg2, const T3& arg3, const T4& arg4, const T5& arg5, const T6& arg6, const T7& arg7, const T8& arg8) {
throw Rcpp::exception( tfm::format(fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8).c_str() );
}

template <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8, typename T9>
inline void stop(const char* fmt, const T1& arg1, const T2& arg2, const T3& arg3, const T4& arg4, const T5& arg5, const T6& arg6, const T7& arg7, const T8& arg8, const T9& arg9) {
inline voidNORETstop(const char* fmt, const T1& arg1, const T2& arg2, const T3& arg3, const T4& arg4, const T5& arg5, const T6& arg6, const T7& arg7, const T8& arg8, const T9& arg9) {
throw Rcpp::exception( tfm::format(fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9).c_str() );
}

template <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8, typename T9, typename T10>
inline void stop(const char* fmt, const T1& arg1, const T2& arg2, const T3& arg3, const T4& arg4, const T5& arg5, const T6& arg6, const T7& arg7, const T8& arg8, const T9& arg9, const T10& arg10) {
inline voidNORETstop(const char* fmt, const T1& arg1, const T2& arg2, const T3& arg3, const T4& arg4, const T5& arg5, const T6& arg6, const T7& arg7, const T8& arg8, const T9& arg9, const T10& arg10) {
throw Rcpp::exception( tfm::format(fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10).c_str() );
}
}
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp