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
ruby-dnn-0.1.2 lib/dnn/ext/cifar10/numo/compat.h
ruby-dnn-0.1.2 lib/dnn/ext/mnist/numo/compat.h
ruby-dnn-0.1.1 lib/dnn/ext/mnist/numo/compat.h
ruby-dnn-0.1.1 lib/dnn/ext/image_io/numo/compat.h
ruby-dnn-0.1.1 lib/dnn/ext/cifar10/numo/compat.h
ruby-dnn-0.1.0 lib/dnn/ext/cifar10/numo/compat.h
ruby-dnn-0.1.0 lib/dnn/ext/mnist/numo/compat.h
ruby-dnn-0.1.0 lib/dnn/ext/image_io/numo/compat.h
numo-narray-0.9.1.2 ext/numo/narray/numo/compat.h
numo-narray-0.9.1.1 ext/numo/narray/numo/compat.h
numo-narray-0.9.1.0 ext/numo/narray/numo/compat.h
numo-narray-0.9.0.9 ext/numo/narray/numo/compat.h
numo-narray-0.9.0.8 ext/numo/narray/numo/compat.h
numo-narray-0.9.0.7 ext/numo/narray/numo/compat.h
numo-narray-0.9.0.6 ext/numo/narray/numo/compat.h
numo-narray-0.9.0.5 ext/numo/narray/numo/compat.h
numo-narray-0.9.0.4 ext/numo/narray/numo/compat.h
numo-narray-0.9.0.3-x86-mingw32 ext/numo/narray/numo/compat.h
numo-narray-0.9.0.3-x64-mingw32 ext/numo/narray/numo/compat.h
numo-narray-0.9.0.3 ext/numo/narray/numo/compat.h