Sha256: 788e311c876ef5f2f3acb879aa7e858ec0d0ba9b23098bea14fc237c8993037d

Contents?: true

Size: 428 Bytes

Versions: 9

Compression:

Stored size: 428 Bytes

Contents

#ifndef FFI_COMPAT_H
#define FFI_COMPAT_H

#include <ruby.h>

#ifndef RARRAY_LEN
#  define RARRAY_LEN(ary) RARRAY(ary)->len
#endif
#ifndef RARRAY_PTR
#  define RARRAY_PTR(ary) RARRAY(ary)->ptr
#endif
#ifndef RSTRING_LEN
#  define RSTRING_LEN(s) RSTRING(s)->len
#endif
#ifndef RSTRING_PTR
#  define RSTRING_PTR(s) RSTRING(s)->ptr
#endif
#ifndef NUM2ULL
#  define NUM2ULL(x) rb_num2ull((VALUE)x)
#endif

#endif /* FFI_COMPAT_H */

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
minilab-1.1.0-x86-mswin32-60 vendor/ffi-0.4.0-x86-mswin32/ext/ffi_c/compat.h
ffi-0.4.0-x86-mswin32 ext/ffi_c/compat.h
ffi-0.4.0 ext/ffi_c/compat.h
ffi-0.3.0 ext/ffi_c/compat.h
ffi-0.3.1 ext/ffi_c/compat.h
ffi-0.3.2 ext/ffi_c/compat.h
ffi-0.3.4 ext/ffi_c/compat.h
ffi-0.3.5 ext/ffi_c/compat.h
ffi-0.3.3 ext/ffi_c/compat.h