Skip to content

Commit

Permalink
cgen: fix comptime $if !autofree { (#21218)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Apr 8, 2024
1 parent 3835308 commit 19ef768
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions vlib/v/gen/c/cgen.v
Expand Up @@ -851,8 +851,6 @@ pub fn (mut g Gen) init() {
}
if g.pref.autofree {
g.comptime_definitions.writeln('#define _VAUTOFREE (1)')
} else {
g.comptime_definitions.writeln('#define _VAUTOFREE (0)')
}
if g.pref.prealloc {
g.comptime_definitions.writeln('#define _VPREALLOC (1)')
Expand Down

0 comments on commit 19ef768

Please sign in to comment.