Skip to content

Commit 93e9b9f

Browse files
committed
generate .Call(...) instead of .Primitive(.Call)(...) for cppFunction
1 parent dc7900b commit 93e9b9f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2018-02-14 Kirill Müller <[email protected]>
2+
3+
* R/Attributes.R: Code compiled with cppFunction() uses .Call instead
4+
of .Primitive(".Call"), #795
5+
16
2018-02-07 Kevin Ushey <[email protected]>
27

38
* inst/include/Rcpp/longlong.h: Allow long long on 64bit Windows

R/Attributes.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ sourceCppFunction <- function(func, isVoid, dll, symbol) {
539539
for (i in seq(along.with = args))
540540
body[[i+2]] <- as.symbol(args[i])
541541

542-
body[[1L]] <- .Call
542+
body[[1L]] <- quote(.Call)
543543
body[[2L]] <- getNativeSymbolInfo(symbol, dll)$address
544544

545545
if (isVoid)

0 commit comments

Comments
 (0)