Skip to content

Commit 678c854

Browse files
committed
override TINYFORMAT_ASSERT()
1 parent f847733 commit 678c854

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

inst/include/Rcpp/utils/tinyformat.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ void stop(const std::string& message);
1010
#define TINYFORMAT_NO_VARIADIC_TEMPLATES
1111
#endif
1212

13+
#define TINYFORMAT_ASSERT(cond) do if (!(cond)) ::Rcpp::stop("Assertion failed"); while(0)
14+
1315
#include "tinyformat/tinyformat.h"

0 commit comments

Comments
 (0)