Skip to content

Commit

Permalink
Do not add ', PACKAGE=...' when registration is used
Browse files Browse the repository at this point in the history
  • Loading branch information
eddelbuettel committed Mar 19, 2023
1 parent f688928 commit 14975fc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/attributes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2541,9 +2541,11 @@ namespace attributes {
ostr() << "methods::setLoadAction(function(ns) {" << std::endl;
ostr() << " .Call("
<< (registration_ ? "`" : "'")
<< registerCCallableExportedName()
<< (registration_ ? "`" : "'")
<< ", PACKAGE = '" << package() << "')"
<< registerCCallableExportedName()
<< (registration_ ? "`" : "'");
if (!registration_)
ostr() << ", PACKAGE = '" << package() << "'";
ostr() << ")"
<< std::endl << "})" << std::endl; // #nocov end
}
}
Expand Down

0 comments on commit 14975fc

Please sign in to comment.