Skip to content

Commit eca8f4f

Browse files
author
Kirill Müller
committed
annotate stop() with NORET
1 parent 2bbb1fd commit eca8f4f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

inst/include/Rcpp/exceptions.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -247,57 +247,57 @@ namespace Rcpp{
247247
Rf_warning( tfm::format(fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10).c_str() );
248248
}
249249

250-
inline void stop(const std::string& message) {
250+
inline void NORET stop(const std::string& message) {
251251
throw Rcpp::exception(message.c_str());
252252
}
253253

254254
template <typename T1>
255-
inline void stop(const char* fmt, const T1& arg1) {
255+
inline void NORET stop(const char* fmt, const T1& arg1) {
256256
throw Rcpp::exception( tfm::format(fmt, arg1 ).c_str() );
257257
}
258258

259259
template <typename T1, typename T2>
260-
inline void stop(const char* fmt, const T1& arg1, const T2& arg2) {
260+
inline void NORET stop(const char* fmt, const T1& arg1, const T2& arg2) {
261261
throw Rcpp::exception( tfm::format(fmt, arg1, arg2 ).c_str() );
262262
}
263263

264264
template <typename T1, typename T2, typename T3>
265-
inline void stop(const char* fmt, const T1& arg1, const T2& arg2, const T3& arg3) {
265+
inline void NORET stop(const char* fmt, const T1& arg1, const T2& arg2, const T3& arg3) {
266266
throw Rcpp::exception( tfm::format(fmt, arg1, arg2, arg3).c_str() );
267267
}
268268

269269
template <typename T1, typename T2, typename T3, typename T4>
270-
inline void stop(const char* fmt, const T1& arg1, const T2& arg2, const T3& arg3, const T4& arg4) {
270+
inline void NORET stop(const char* fmt, const T1& arg1, const T2& arg2, const T3& arg3, const T4& arg4) {
271271
throw Rcpp::exception( tfm::format(fmt, arg1, arg2, arg3, arg4).c_str() );
272272
}
273273

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

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

284284
template <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7>
285-
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) {
285+
inline void NORET 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) {
286286
throw Rcpp::exception( tfm::format(fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7).c_str() );
287287
}
288288

289289
template <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8>
290-
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) {
290+
inline void NORET 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) {
291291
throw Rcpp::exception( tfm::format(fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8).c_str() );
292292
}
293293

294294
template <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8, typename T9>
295-
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) {
295+
inline void NORET 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) {
296296
throw Rcpp::exception( tfm::format(fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9).c_str() );
297297
}
298298

299299
template <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8, typename T9, typename T10>
300-
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) {
300+
inline void NORET 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) {
301301
throw Rcpp::exception( tfm::format(fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10).c_str() );
302302
}
303303
}

0 commit comments

Comments
 (0)