Sha256: 26fc0f994c916554799debf5b9b74c6e55bb3a2664594aff2f9a4faab18276f2
Contents?: true
Size: 418 Bytes
Versions: 33
Compression:
Stored size: 418 Bytes
Contents
#ifndef MRB_VALUE_ARRAY_H__ #define MRB_VALUE_ARRAY_H__ #include <mruby.h> static inline void value_move(mrb_value *s1, const mrb_value *s2, size_t n) { if (s1 > s2 && s1 < s2 + n) { s1 += n; s2 += n; while (n-- > 0) { *--s1 = *--s2; } } else if (s1 != s2) { while (n-- > 0) { *s1++ = *s2++; } } else { /* nothing to do. */ } } #endif /* MRB_VALUE_ARRAY_H__ */
Version data entries
33 entries across 33 versions & 2 rubygems