From 5a183d23a93565eb742446939ff324c419dce27a Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 5 Feb 2021 08:16:16 +0100 Subject: [PATCH] cgen: disable the new [if xxx] logic for now --- vlib/v/gen/c/fn.v | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vlib/v/gen/c/fn.v b/vlib/v/gen/c/fn.v index cbef70c4ed..608d5330d6 100644 --- a/vlib/v/gen/c/fn.v +++ b/vlib/v/gen/c/fn.v @@ -16,6 +16,7 @@ fn (mut g Gen) gen_fn_decl(node ast.FnDecl, skip bool) { return } // Skip [if xxx] if xxx is not defined + /* for attr in node.attrs { if !attr.is_comptime_define { continue @@ -31,6 +32,7 @@ fn (mut g Gen) gen_fn_decl(node ast.FnDecl, skip bool) { // return } } + */ g.returned_var_name = '' //