R/cxx_utils.R

Defines functions .checkedCall

# A .Call function with inbuilt checking for a returned error message.
.hiddenCall <- .Call

#' @useDynLib scaterlegacy, .registration=TRUE
.checkedCall <- function(.NAME, ...) {
    out <- .hiddenCall(.NAME, ...)
    if (is.character(out)) { stop(out) }
    return(out)
}
dynverse/scaterlegacy documentation built on Feb. 17, 2020, 5:07 a.m.