We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8c6974 commit 062b9dfCopy full SHA for 062b9df
2 files changed
vlib/v/gen/c/cgen.v
@@ -6798,9 +6798,6 @@ fn (mut g Gen) write_init_function() {
6798
g.export_funcs << '_vinit_caller'
6799
g.writeln('void _vinit_caller() {')
6800
g.writeln('\tstatic bool once = false; if (once) {return;} once = true;')
6801
- if g.nr_closures > 0 {
6802
- g.writeln('\tbuiltin__closure__closure_init(); // vinit_caller()')
6803
- }
6804
g.writeln('\t_vinit(0,0);')
6805
g.writeln('}')
6806
vlib/v/gen/c/testdata/closure_shared_lib.c.must_have
@@ -1 +1 @@
1
-__closure_init(); // vinit_caller()
+builtin__closure__closure_init();
0 commit comments