mirror of
https://github.com/vlang/v.git
synced 2025-09-15 23:42:28 +03:00
array of pointers support
This commit is contained in:
parent
f00f9fbf5a
commit
67cf7f18e6
5 changed files with 27 additions and 15 deletions
|
@ -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(', (')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue