1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

remove unnecessary empty lines in cgen

This commit is contained in:
Alexander Medvednikov
2019-11-11 06:02:01 +03:00
parent 730ef96398
commit 0ad0a61db2
4 changed files with 5 additions and 10 deletions

View File

@ -1114,10 +1114,10 @@ fn (p mut Parser) fn_call_args(f mut Fn) {
p.gen('}[0] ')
}
else if exp_ptr && expected == got + '*' {
$if !tinyc {
expr := p.cgen.cur_line[ph..]
// TODO hack
// If current expression is a func call, generate the array hack
$if !tinyc {
if expr.contains('(') {
//println('fn hack expr=$expr')
p.cgen.set_placeholder(ph, '& /*113 e="$expected" g="$got"*/ ($got[]){')