ci: fix `[if xyz ?]` usages
parent
a3f876d683
commit
dd6591b2f5
|
@ -96,7 +96,7 @@ mut:
|
||||||
cmd_after_run string // a command to run after each re-run
|
cmd_after_run string // a command to run after each re-run
|
||||||
}
|
}
|
||||||
|
|
||||||
[if debug_vwatch]
|
[if debug_vwatch ?]
|
||||||
fn (mut context Context) elog(msg string) {
|
fn (mut context Context) elog(msg string) {
|
||||||
eprintln('> vwatch $context.pid, $msg')
|
eprintln('> vwatch $context.pid, $msg')
|
||||||
}
|
}
|
||||||
|
|
|
@ -127,7 +127,7 @@ fn remap(v f32, min f32, max f32, new_min f32, new_max f32) f32 {
|
||||||
return (((v - min) * (new_max - new_min)) / (max - min)) + new_min
|
return (((v - min) * (new_max - new_min)) / (max - min)) + new_min
|
||||||
}
|
}
|
||||||
|
|
||||||
[if showfps]
|
[if showfps ?]
|
||||||
fn (mut game Game) showfps() {
|
fn (mut game Game) showfps() {
|
||||||
game.frame++
|
game.frame++
|
||||||
last_frame_ms := f64(game.frame_sw.elapsed().microseconds()) / 1000.0
|
last_frame_ms := f64(game.frame_sw.elapsed().microseconds()) / 1000.0
|
||||||
|
|
|
@ -3,7 +3,7 @@ fn foo(x int) {
|
||||||
println('foo, x: $x')
|
println('foo, x: $x')
|
||||||
}
|
}
|
||||||
|
|
||||||
[if bar]
|
[if bar ?]
|
||||||
fn bar(x int) {
|
fn bar(x int) {
|
||||||
println('bar, x: $x')
|
println('bar, x: $x')
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// Calls to edebug/1 should be executed only when `-d mydebug` is passed on the CLI
|
// Calls to edebug/1 should be executed only when `-d mydebug` is passed on the CLI
|
||||||
// Otherwise they will not be present *at all* in the generated code.
|
// Otherwise they will not be present *at all* in the generated code.
|
||||||
[if mydebug]
|
[if mydebug ?]
|
||||||
fn edebug(message string) {
|
fn edebug(message string) {
|
||||||
println('message: $message')
|
println('message: $message')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue