diff --git a/vlib/v/gen/c/cgen.v b/vlib/v/gen/c/cgen.v index 1b703cd073..06cb117c50 100644 --- a/vlib/v/gen/c/cgen.v +++ b/vlib/v/gen/c/cgen.v @@ -411,14 +411,14 @@ pub fn gen(files []&ast.File, table &ast.Table, pref &pref.Preferences) string { // to make sure type idx's are the same in cached mods if g.pref.build_mode == .build_module { for idx, sym in g.table.type_symbols { - if idx == 0 { + if idx in [0, 30] { continue } g.definitions.writeln('int _v_type_idx_${sym.cname}();') } } else if g.pref.use_cache { for idx, sym in g.table.type_symbols { - if idx == 0 { + if idx in [0, 30] { continue } g.definitions.writeln('int _v_type_idx_${sym.cname}() { return $idx; };')