Sha256: 42793803ad072d333fad4f76d90ab0fa666a0e95940077d4bc4eeb04495245a1

Contents?: true

Size: 1.22 KB

Versions: 28

Compression:

Stored size: 1.22 KB

Contents

#include "ruby.h"

long
impl_rstring_len(VALUE obj) {
  return RSTRING_LEN(obj);
}

char *
impl_rstring_ptr(VALUE obj) {
  return RSTRING_PTR(obj);
}

long
impl_rarray_len(VALUE obj) {
  return RARRAY_LEN(obj);
}

const VALUE *
impl_rarray_const_ptr(VALUE obj) {
  return RARRAY_CONST_PTR(obj);
}

int
impl_special_const_p(VALUE obj) {
  return SPECIAL_CONST_P(obj);
}

enum ruby_value_type
impl_builtin_type(VALUE obj) {
  return RB_BUILTIN_TYPE(obj);
}

int
impl_nil_p(VALUE obj) {
  return NIL_P(obj);
}

int
impl_fixnum_p(VALUE obj) {
  return FIXNUM_P(obj);
}

int
impl_static_sym_p(VALUE obj) {
  return STATIC_SYM_P(obj);
}

int
impl_flonum_p(VALUE obj) {
  return FLONUM_P(obj);
}

int
impl_immediate_p(VALUE obj) {
  return IMMEDIATE_P(obj);
}

int
impl_rb_test(VALUE obj) {
  return RB_TEST(obj);
}

int
impl_type_p(VALUE obj, enum ruby_value_type type) {
  return RB_TYPE_P(obj, type);
}

int
impl_dynamic_sym_p(VALUE obj) {
  return RB_DYNAMIC_SYM_P(obj);
}

int impl_symbol_p(VALUE obj) {
  return RB_SYMBOL_P(obj);
}

int impl_float_type_p(VALUE obj) {
  return RB_FLOAT_TYPE_P(obj);
}

enum ruby_value_type
impl_rb_type(VALUE obj) {
  return rb_type(obj);
}

int
impl_integer_type_p(VALUE obj) {
  return RB_INTEGER_TYPE_P(obj);
}

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
wasmtime-27.0.0 ./ext/cargo-vendor/rb-sys-0.9.103/src/stable_api/compiled.c
wasmtime-26.0.0 ./ext/cargo-vendor/rb-sys-0.9.102/src/stable_api/compiled.c
wasmtime-25.0.2 ./ext/cargo-vendor/rb-sys-0.9.102/src/stable_api/compiled.c
wasmtime-25.0.1 ./ext/cargo-vendor/rb-sys-0.9.102/src/stable_api/compiled.c
wasmtime-25.0.0 ./ext/cargo-vendor/rb-sys-0.9.102/src/stable_api/compiled.c
wasmtime-24.0.0 ./ext/cargo-vendor/rb-sys-0.9.102/src/stable_api/compiled.c
wasmtime-23.0.2 ./ext/cargo-vendor/rb-sys-0.9.100/src/stable_api/compiled.c
wasmtime-22.0.0 ./ext/cargo-vendor/rb-sys-0.9.100/src/stable_api/compiled.c
wasmtime-21.0.1 ./ext/cargo-vendor/rb-sys-0.9.100/src/stable_api/compiled.c
wasmtime-20.0.2 ./ext/cargo-vendor/rb-sys-0.9.97/src/stable_api/compiled.c
wasmtime-20.0.0 ./ext/cargo-vendor/rb-sys-0.9.97/src/stable_api/compiled.c
wasmtime-18.0.3 ./ext/cargo-vendor/rb-sys-0.9.89/src/stable_api/compiled.c
wasmtime-17.0.1 ./ext/cargo-vendor/rb-sys-0.9.86/src/stable_api/compiled.c
wasmtime-17.0.0 ./ext/cargo-vendor/rb-sys-0.9.86/src/stable_api/compiled.c
wasmtime-16.0.0 ./ext/cargo-vendor/rb-sys-0.9.86/src/stable_api/compiled.c
wasmtime-15.0.1 ./ext/cargo-vendor/rb-sys-0.9.86/src/stable_api/compiled.c
wasmtime-15.0.0 ./ext/cargo-vendor/rb-sys-0.9.86/src/stable_api/compiled.c
wasmtime-14.0.4 ./ext/cargo-vendor/rb-sys-0.9.82/src/stable_api/compiled.c
wasmtime-14.0.3 ./ext/cargo-vendor/rb-sys-0.9.82/src/stable_api/compiled.c
wasmtime-14.0.1 ./ext/cargo-vendor/rb-sys-0.9.82/src/stable_api/compiled.c