R/status.R

Defines functions zu_get_api zu_api_struct_size zu_abi_version zu_all_status_strings

#' Description of every ABI status code
#'
#' Walks the `zu_status` enum from `ZU_OK` to `ZU_ERR_INTERNAL` and returns
#' `zu_status_string()` for each. Internal: the R condition hierarchy, not
#' these strings, is the contract for callers.
#'
#' @return A character vector, one entry per status, in enum order.
#' @keywords internal
#' @noRd
zu_all_status_strings <- function() {
  .Call(zukomp_all_status_strings)
}

#' ABI version implemented by this build
#'
#' @return A length-1 integer.
#' @keywords internal
#' @noRd
zu_abi_version <- function() {
  .Call(zukomp_abi_version)
}

#' Size of the C API table, for the ABI tests
#' @keywords internal
#' @noRd
zu_api_struct_size <- function() .Call(zukomp_api_struct_size)

#' Fetch the API table's self-description, or NULL on a version mismatch
#' @keywords internal
#' @noRd
zu_get_api <- function(requested = 1L) {
  .Call(zukomp_get_api_r, as.integer(requested))
}

Try the zukomp package in your browser

Any scripts or data that you put into this service are public.

zukomp documentation built on Oct. 16, 2026, 5:09 p.m.