File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 2
2
#include " cpp11/protect.hpp"
3
3
using namespace cpp11 ;
4
4
5
- [[cpp11::register ]] void my_stop_n1fmt (std::string mystring) {
6
- cpp11::stop (mystring);
7
- }
5
+ [[cpp11::register ]] void my_stop_n1fmt (std::string mystring) { cpp11::stop (mystring); }
8
6
[[cpp11::register ]] void my_stop_n2fmt (std::string mystring, std::string myarg) {
9
7
cpp11::stop (mystring, myarg.c_str ());
10
8
}
Original file line number Diff line number Diff line change @@ -6,18 +6,12 @@ using namespace cpp11;
6
6
[[cpp11::register ]] void my_stop (std::string mystring, int myarg) {
7
7
cpp11::stop (mystring, myarg);
8
8
}
9
- [[cpp11::register ]] void my_stop_n1 (std::string mystring) {
10
- cpp11::stop (mystring);
11
- }
9
+ [[cpp11::register ]] void my_stop_n1 (std::string mystring) { cpp11::stop (mystring); }
12
10
[[cpp11::register ]] void my_warning (std::string mystring, std::string myarg) {
13
11
cpp11::warning (mystring, myarg);
14
12
}
15
- [[cpp11::register ]] void my_warning_n1 (std::string mystring) {
16
- cpp11::warning (mystring);
17
- }
13
+ [[cpp11::register ]] void my_warning_n1 (std::string mystring) { cpp11::warning (mystring); }
18
14
[[cpp11::register ]] void my_message (std::string mystring, std::string myarg) {
19
15
cpp11::message (mystring, myarg);
20
16
}
21
- [[cpp11::register ]] void my_message_n1 (std::string mystring) {
22
- cpp11::message (mystring);
23
- }
17
+ [[cpp11::register ]] void my_message_n1 (std::string mystring) { cpp11::message (mystring); }
You can’t perform that action at this time.
0 commit comments