Sha256: f2d3b54f637cbb8c2a7925f6855f870ac6516b300febf25d88741729addff37c

Contents?: true

Size: 427 Bytes

Versions: 1

Compression:

Stored size: 427 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 RSTRING_LEN
#  define RSTRING_LEN(s) RSTRING(s)->len
#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

1 entries across 1 versions & 1 rubygems

Version Path
ffi-0.2.0 ext/compat.h