Sha256: e842ec81d69520763649ac8eb66aa2ca7825b7b88b82e7f4e91de928a6de7751

Contents?: true

Size: 499 Bytes

Versions: 63

Compression:

Stored size: 499 Bytes

Contents

#ifndef COMPAT_H
#define COMPAT_H

#if !defined RSTRING_LEN
#define RSTRING_LEN(a) RSTRING(a)->len
#endif
#if !defined RSTRING_PTR
#define RSTRING_PTR(a) RSTRING(a)->ptr
#endif
#if !defined RARRAY_LEN
#define RARRAY_LEN(a) RARRAY(a)->len
#endif
#if !defined RARRAY_PTR
#define RARRAY_PTR(a) RARRAY(a)->ptr
#endif
#if !defined RARRAY_AREF
#define RARRAY_AREF(a,i) RARRAY_PTR(a)[i]
#endif
#if !defined RARRAY_ASET
#define RARRAY_ASET(a,i,v) (RARRAY_PTR(a)[i] = v)
#endif

#endif /* ifndef COMPAT_H */

Version data entries

63 entries across 40 versions & 2 rubygems

Version Path
numo-narray-0.9.2.1 ext/numo/narray/numo/compat.h
numo-narray-0.9.2.0 ext/numo/narray/numo/compat.h
numo-narray-0.9.1.9 ext/numo/narray/numo/compat.h
numo-narray-0.9.1.8 ext/numo/narray/numo/compat.h
numo-narray-0.9.1.7 ext/numo/narray/numo/compat.h
numo-narray-0.9.1.6 ext/numo/narray/numo/compat.h
numo-narray-0.9.1.5 ext/numo/narray/numo/compat.h
numo-narray-0.9.1.4 ext/numo/narray/numo/compat.h
numo-narray-0.9.1.3 ext/numo/narray/numo/compat.h
ruby-dnn-0.4.0 lib/dnn/ext/rb_stb_image/numo/compat.h
ruby-dnn-0.4.0 lib/dnn/ext/dataset_loader/numo/compat.h
ruby-dnn-0.3.2 lib/dnn/ext/image_io/numo/compat.h
ruby-dnn-0.3.2 lib/dnn/ext/dataset_loader/numo/compat.h
ruby-dnn-0.3.1 lib/dnn/ext/image_io/numo/compat.h
ruby-dnn-0.3.1 lib/dnn/ext/dataset_loader/numo/compat.h
ruby-dnn-0.3.0 lib/dnn/ext/image_io/numo/compat.h
ruby-dnn-0.3.0 lib/dnn/ext/dataset_loader/numo/compat.h
ruby-dnn-0.2.2 lib/dnn/ext/dataset_loader/numo/compat.h
ruby-dnn-0.2.2 lib/dnn/ext/image_io/numo/compat.h
ruby-dnn-0.2.1 lib/dnn/ext/dataset_loader/numo/compat.h