mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
array of pointers support
This commit is contained in:

committed by
Alexander Medvednikov

parent
f00f9fbf5a
commit
67cf7f18e6
@@ -416,7 +416,7 @@ fn (p mut Parser) expression() string {
|
||||
// a << 7 => int tmp = 7; array_push(&a, &tmp);
|
||||
// _PUSH(&a, expression(), tmp, string)
|
||||
tmp := p.get_tmp()
|
||||
tmp_typ := typ[6..]// skip "array_"
|
||||
tmp_typ := typ[6..].replace('_ptr','*')// skip "array_"
|
||||
p.check_space(.left_shift)
|
||||
// Get the value we are pushing
|
||||
p.gen(', (')
|
||||
|
Reference in New Issue
Block a user