Skip to content

Commit f55b8bd

Browse files
committed
reinstate mirai scm
1 parent 34173ab commit f55b8bd

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: nanonext
22
Type: Package
33
Title: NNG (Nanomsg Next Gen) Lightweight Messaging Library
4-
Version: 0.3.0.9004
4+
Version: 0.3.0.9005
55
Description: R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is
66
a socket library providing high-performance scalability protocols,
77
implementing a cross-platform standard for messaging and communications.

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ S3method(setopt,nanoListener)
4242
S3method(setopt,nanoSocket)
4343
S3method(start,nanoDialer)
4444
S3method(start,nanoListener)
45+
export(.mirai_scm)
4546
export(call_aio)
4647
export(context)
4748
export(dial)

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nanonext 0.3.0.9004 (development)
1+
# nanonext 0.3.0.9005 (development)
22

33
#### New Features
44

R/utils.R

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,18 @@ logging <- function(level = c("keep", "check", "error", "info")) {
100100

101101
}
102102

103+
# nanonext - Limited scope exported functions ----------------------------------
104+
105+
#' @export
106+
#'
107+
.mirai_scm <- function() {
108+
109+
identical(parent.env(parent.env(parent.frame())), getNamespace("mirai")) ||
110+
stop("this function is for package internal use only")
111+
.Call(rnng_scm)
112+
113+
}
114+
103115
# nanonext - Non-exported functions --------------------------------------------
104116

105117
encode <- function(data, mode) {

0 commit comments

Comments
 (0)