cgen: disable the new [if xxx] logic for now

pull/8574/head
Alexander Medvednikov 2021-02-05 08:16:16 +01:00
parent 1084b43ffb
commit 5a183d23a9
1 changed files with 2 additions and 0 deletions

View File

@ -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 = ''
//