repo.or.cz
/
aqualang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
grand renaming to 'aqua' (well, 'Aqua' actually)
[aqualang.git]
/
src
/
builtin.array.cpp
blob
c586cb1bc67c750b62968166f3d7e1a992efaabe
1
2
3
#include
"private.h"
4
#include
"builtin.h"
5
6
namespace
Aqua
7
{
8
using
Value
=
Interpreter
::
Value
;
9
10
namespace
Builtins
11
{
12
BUILTIN_PROTO
(
rtbuiltin_func_array_length
,
ip
,
self
,
args
)
13
{
14
(
void
)
ip
;
15
(
void
)
args
;
16
Value
::
NumberType sz
;
17
sz
=
Value
::
NumberType
(
self
.
array
()->
size
());
18
return
Value
(
sz
);
19
}
20
21
BUILTIN_PROTO
(
rtbuiltin_func_array_slice
,
ip
,
self
,
args
)
22
{
23
(
void
)
ip
;
24
(
void
)
self
;
25
(
void
)
args
;
26
return
Value
();
27
}
28
}
29
}