annotate R/rdyncall/R/callback.R @ 66:7a61dd082341
default tip
pydc:
- fix double free triggered by capsule destructor, when freeing pydc and callback objects, manually
author |
Tassilo Philipp |
date |
Fri, 24 May 2024 18:16:29 +0200 |
parents |
0cfcc391201f |
children |
|
rev |
line source |
0
|
1 # Package: rdyncall
|
|
2 # File: R/callback.R
|
|
3 # Description: R Callbacks
|
|
4
|
|
5 new.callback <- function(signature, fun, envir=new.env())
|
|
6 {
|
|
7 stopifnot( is.character(signature) )
|
|
8 stopifnot( is.function(fun) )
|
|
9 stopifnot( is.environment(envir) )
|
|
10 .Call("new_callback", signature, fun, envir, PACKAGE="rdyncall")
|
|
11 }
|