mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: fix const name
This commit is contained in:
parent
cc9537dd8a
commit
7f345e310b
@ -655,9 +655,9 @@ fn (g mut Gen) gen_fn_decl(it ast.FnDecl) {
|
||||
if is_main {
|
||||
g.writeln('_vinit();')
|
||||
if g.autofree {
|
||||
g.writeln('free(os__args.data); // empty, inited in _vinit()')
|
||||
g.writeln('free(_const_os__args.data); // empty, inited in _vinit()')
|
||||
}
|
||||
g.writeln('os__args = os__init_os_args(argc, (byteptr*)argv);')
|
||||
g.writeln('_const_os__args = os__init_os_args(argc, (byteptr*)argv);')
|
||||
}
|
||||
g.stmts(it.stmts)
|
||||
// ////////////
|
||||
|
Loading…
Reference in New Issue
Block a user