1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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

This commit is contained in:
Alexander Medvednikov 2021-02-05 08:16:16 +01:00
parent 1084b43ffb
commit 5a183d23a9

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