FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
mruby/src/value_array.h at master · mruby/mruby · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
mruby
/
mruby
Public
Notifications
You must be signed in to change notification settings
Fork
850
Star
5.6k
Code
Issues
1
Pull requests
3
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
mruby
/
src
/
value_array.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
28 lines (25 loc) · 440 Bytes
Breadcrumbs
mruby
/
src
/
value_array.h
Copy path
File metadata and controls
28 lines (25 loc) · 440 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#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__ */
Back
|
FazBrowse Home
|
New Git URL