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.2.1 lib/dnn/ext/dataset_loader/numo/compat.h
ruby-dnn-0.2.0 lib/dnn/ext/dataset_loader/numo/compat.h
ruby-dnn-0.2.0 lib/dnn/ext/image_io/numo/compat.h
ruby-dnn-0.1.8 lib/dnn/ext/dataset_loader/numo/compat.h
ruby-dnn-0.1.8 lib/dnn/ext/image_io/numo/compat.h
ruby-dnn-0.1.7 lib/dnn/ext/image_io/numo/compat.h
ruby-dnn-0.1.7 lib/dnn/ext/dataset_loader/numo/compat.h
ruby-dnn-0.1.6 lib/dnn/ext/cifar10/numo/compat.h
ruby-dnn-0.1.6 lib/dnn/ext/mnist/numo/compat.h
ruby-dnn-0.1.6 lib/dnn/ext/image_io/numo/compat.h
ruby-dnn-0.1.5 lib/dnn/ext/cifar10/numo/compat.h
ruby-dnn-0.1.5 lib/dnn/ext/image_io/numo/compat.h
ruby-dnn-0.1.5 lib/dnn/ext/mnist/numo/compat.h
ruby-dnn-0.1.4 lib/dnn/ext/cifar10/numo/compat.h
ruby-dnn-0.1.4 lib/dnn/ext/image_io/numo/compat.h
ruby-dnn-0.1.4 lib/dnn/ext/mnist/numo/compat.h
ruby-dnn-0.1.3 lib/dnn/ext/cifar10/numo/compat.h
ruby-dnn-0.1.3 lib/dnn/ext/image_io/numo/compat.h
ruby-dnn-0.1.3 lib/dnn/ext/mnist/numo/compat.h
ruby-dnn-0.1.2 lib/dnn/ext/image_io/numo/compat.h