-
Notifications
You must be signed in to change notification settings - Fork 238
Expand file tree
/
Copy pathcpp11.cpp
More file actions
75 lines (70 loc) · 3 KB
/
Copy pathcpp11.cpp
File metadata and controls
75 lines (70 loc) · 3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// Generated by cpp11: do not edit by hand
// clang-format off
#include "cpp11/declarations.hpp"
#include <R_ext/Visibility.h>
// escapeExamples.cpp
std::string escapeExamples(std::string x);
extern "C" SEXP _roxygen2_escapeExamples(SEXP x) {
BEGIN_CPP11
return cpp11::as_sexp(escapeExamples(cpp11::as_cpp<cpp11::decay_t<std::string>>(x)));
END_CPP11
}
// isComplete.cpp
int findEndOfTag(std::string string, bool is_code, int start);
extern "C" SEXP _roxygen2_findEndOfTag(SEXP string, SEXP is_code, SEXP start) {
BEGIN_CPP11
return cpp11::as_sexp(findEndOfTag(cpp11::as_cpp<cpp11::decay_t<std::string>>(string), cpp11::as_cpp<cpp11::decay_t<bool>>(is_code), cpp11::as_cpp<cpp11::decay_t<int>>(start)));
END_CPP11
}
// isComplete.cpp
bool rdComplete(std::string string, bool is_code);
extern "C" SEXP _roxygen2_rdComplete(SEXP string, SEXP is_code) {
BEGIN_CPP11
return cpp11::as_sexp(rdComplete(cpp11::as_cpp<cpp11::decay_t<std::string>>(string), cpp11::as_cpp<cpp11::decay_t<bool>>(is_code)));
END_CPP11
}
// leadingSpaces.cpp
cpp11::integers leadingSpaces(cpp11::strings lines);
extern "C" SEXP _roxygen2_leadingSpaces(SEXP lines) {
BEGIN_CPP11
return cpp11::as_sexp(leadingSpaces(cpp11::as_cpp<cpp11::decay_t<cpp11::strings>>(lines)));
END_CPP11
}
// parser2.cpp
cpp11::list tokenise_block(cpp11::strings lines, std::string file, int offset);
extern "C" SEXP _roxygen2_tokenise_block(SEXP lines, SEXP file, SEXP offset) {
BEGIN_CPP11
return cpp11::as_sexp(tokenise_block(cpp11::as_cpp<cpp11::decay_t<cpp11::strings>>(lines), cpp11::as_cpp<cpp11::decay_t<std::string>>(file), cpp11::as_cpp<cpp11::decay_t<int>>(offset)));
END_CPP11
}
// parser2.cpp
cpp11::strings find_includes(std::string path);
extern "C" SEXP _roxygen2_find_includes(SEXP path) {
BEGIN_CPP11
return cpp11::as_sexp(find_includes(cpp11::as_cpp<cpp11::decay_t<std::string>>(path)));
END_CPP11
}
// wrapUsage.cpp
std::string wrapUsage(std::string string, int width, int indent);
extern "C" SEXP _roxygen2_wrapUsage(SEXP string, SEXP width, SEXP indent) {
BEGIN_CPP11
return cpp11::as_sexp(wrapUsage(cpp11::as_cpp<cpp11::decay_t<std::string>>(string), cpp11::as_cpp<cpp11::decay_t<int>>(width), cpp11::as_cpp<cpp11::decay_t<int>>(indent)));
END_CPP11
}
extern "C" {
static const R_CallMethodDef CallEntries[] = {
{"_roxygen2_escapeExamples", (DL_FUNC) &_roxygen2_escapeExamples, 1},
{"_roxygen2_findEndOfTag", (DL_FUNC) &_roxygen2_findEndOfTag, 3},
{"_roxygen2_find_includes", (DL_FUNC) &_roxygen2_find_includes, 1},
{"_roxygen2_leadingSpaces", (DL_FUNC) &_roxygen2_leadingSpaces, 1},
{"_roxygen2_rdComplete", (DL_FUNC) &_roxygen2_rdComplete, 2},
{"_roxygen2_tokenise_block", (DL_FUNC) &_roxygen2_tokenise_block, 3},
{"_roxygen2_wrapUsage", (DL_FUNC) &_roxygen2_wrapUsage, 3},
{NULL, NULL, 0}
};
}
extern "C" attribute_visible void R_init_roxygen2(DllInfo* dll){
R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
R_useDynamicSymbols(dll, FALSE);
R_forceSymbols(dll, TRUE);
}