mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: minor simplification of struct zero init (#9085)
This commit is contained in:
parent
38495da07e
commit
822d20d2cc
@ -4793,7 +4793,7 @@ fn (mut g Gen) struct_init(struct_init ast.StructInit) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !initialized {
|
if !initialized {
|
||||||
g.write('\n#ifndef __cplusplus\n0\n#endif\n')
|
g.write('0')
|
||||||
}
|
}
|
||||||
|
|
||||||
g.write('}')
|
g.write('}')
|
||||||
|
Loading…
Reference in New Issue
Block a user