Skip to content

Commit b8bb347

Browse files
authored
Merge pull request #548 from dirmeier/master
Remove leading underscore from header guard methods.
2 parents 30422e4 + 9934749 commit b8bb347

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Rcpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 56a89c184a581d44d211df7b831591e157d26bd9

src/attributes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2149,7 +2149,7 @@ namespace attributes {
21492149
}
21502150

21512151
std::string CppExportsIncludeGenerator::getHeaderGuard() const {
2152-
return "_RCPP_" + packageCpp() + "_RCPPEXPORTS_H_GEN_";
2152+
return "RCPP_" + packageCpp() + "_RCPPEXPORTS_H_GEN_";
21532153
}
21542154

21552155
CppPackageIncludeGenerator::CppPackageIncludeGenerator(
@@ -2197,7 +2197,7 @@ namespace attributes {
21972197
}
21982198

21992199
std::string CppPackageIncludeGenerator::getHeaderGuard() const {
2200-
return "_RCPP_" + packageCpp() + "_H_GEN_";
2200+
return "RCPP_" + packageCpp() + "_H_GEN_";
22012201
}
22022202

22032203
RExportsGenerator::RExportsGenerator(const std::string& packageDir,

0 commit comments

Comments
 (0)