We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f688928 commit 14975fcCopy full SHA for 14975fc
src/attributes.cpp
@@ -2541,9 +2541,11 @@ namespace attributes {
2541
ostr() << "methods::setLoadAction(function(ns) {" << std::endl;
2542
ostr() << " .Call("
2543
<< (registration_ ? "`" : "'")
2544
- << registerCCallableExportedName()
2545
- << (registration_ ? "`" : "'")
2546
- << ", PACKAGE = '" << package() << "')"
+ << registerCCallableExportedName()
+ << (registration_ ? "`" : "'");
+ if (!registration_)
2547
+ ostr() << ", PACKAGE = '" << package() << "'";
2548
+ ostr() << ")"
2549
<< std::endl << "})" << std::endl; // #nocov end
2550
}
2551
0 commit comments