https://github.com/cran/purrr
Tip revision: 249d9efc7f5d6ca1a1d73f9e4409435cb6ea29de authored by Lionel Henry on 06 October 2022, 09:10:02 UTC
version 0.3.5
version 0.3.5
Tip revision: 249d9ef
conditions.h
#ifndef CONDITIONS_H
#define CONDITIONS_H
#include <stdbool.h>
void stop_bad_type(SEXP x, const char* expected, const char* what, const char* arg) __attribute__((noreturn));
void stop_bad_element_type(SEXP x, R_xlen_t index, const char* expected, const char* what, const char* arg) __attribute__((noreturn));
void stop_bad_length(SEXP x, R_xlen_t expected_length, const char* what, const char* arg, bool recycle) __attribute__((noreturn));
void stop_bad_element_length(SEXP x, R_xlen_t index, R_xlen_t expected_length, const char* what, const char* arg, bool recycle) __attribute__((noreturn));
void stop_bad_vector(SEXP x, SEXP expect_ptype, R_xlen_t expected_length, const char* what, const char* arg, bool recycle) __attribute__((noreturn));
void stop_bad_element_vector(SEXP x, R_xlen_t index, SEXP expect_ptype, R_xlen_t expected_length, const char* what, const char* arg, bool recycle) __attribute__((noreturn));
#endif