Skip to content

Commit 14975fc

Browse files
committed
Do not add ', PACKAGE=...' when registration is used
1 parent f688928 commit 14975fc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/attributes.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2541,9 +2541,11 @@ namespace attributes {
25412541
ostr() << "methods::setLoadAction(function(ns) {" << std::endl;
25422542
ostr() << " .Call("
25432543
<< (registration_ ? "`" : "'")
2544-
<< registerCCallableExportedName()
2545-
<< (registration_ ? "`" : "'")
2546-
<< ", PACKAGE = '" << package() << "')"
2544+
<< registerCCallableExportedName()
2545+
<< (registration_ ? "`" : "'");
2546+
if (!registration_)
2547+
ostr() << ", PACKAGE = '" << package() << "'";
2548+
ostr() << ")"
25472549
<< std::endl << "})" << std::endl; // #nocov end
25482550
}
25492551
}

0 commit comments

Comments
 (0)