cgen: minor simplification of struct zero init (#9085)
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