Sha256: c3c3e4ad2076bacdf4a897d57e114424ed6db8ab296d76e04082a2a4e85c2cc8
Contents?: true
Size: 440 Bytes
Versions: 2
Compression:
Stored size: 440 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 (n == 0) return; 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
script_core-0.3.2 | ext/enterprise_script_service/mruby/src/value_array.h |
script_core-0.3.0 | ext/enterprise_script_service/mruby/src/value_array.h |