From 3e2347826551b6ea3203a65acd8f20f1d0da61a2 Mon Sep 17 00:00:00 2001 From: yuyi Date: Wed, 6 Sep 2023 22:12:05 +0800 Subject: [PATCH] Fix global var with init (#146) --- src/c2v.v | 1 + 1 file changed, 1 insertion(+) diff --git a/src/c2v.v b/src/c2v.v index 4c81f38..ef39c4e 100644 --- a/src/c2v.v +++ b/src/c2v.v @@ -1594,6 +1594,7 @@ unique name') } if is_inited { + c.genln('//!') c.gen('[weak] __global ( ${name} ') } else { if typ.name.contains('anonymous enum') || typ.name.contains('unnamed enum') {