mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
comptime: fix $if debug {}
when giving -cg or -d debug
This commit is contained in:
parent
adb8fb1dc6
commit
4f4567513e
@ -199,8 +199,9 @@ pub fn (mut g Gen) init() {
|
|||||||
}
|
}
|
||||||
g.comptime_defines.writeln('')
|
g.comptime_defines.writeln('')
|
||||||
}
|
}
|
||||||
|
if g.pref.is_debug || 'debug' in g.pref.compile_defines {
|
||||||
|
g.comptime_defines.writeln('#define _VDEBUG (1)')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn (mut g Gen) finish() {
|
pub fn (mut g Gen) finish() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user