grand renaming to 'aqua' (well, 'Aqua' actually)
[aqualang.git] / src / builtin.array.cpp
blobc586cb1bc67c750b62968166f3d7e1a992efaabe
3 #include "private.h"
4 #include "builtin.h"
6 namespace Aqua
8 using Value = Interpreter::Value;
10 namespace Builtins
12 BUILTIN_PROTO(rtbuiltin_func_array_length, ip, self, args)
14 (void)ip;
15 (void)args;
16 Value::NumberType sz;
17 sz = Value::NumberType(self.array()->size());
18 return Value(sz);
21 BUILTIN_PROTO(rtbuiltin_func_array_slice, ip, self, args)
23 (void)ip;
24 (void)self;
25 (void)args;
26 return Value();