examples, v.builder: fix v -cstrict -cc gcc-11 examples/sokol/particles and the same but with clang-18 too

This commit is contained in:
Delyan Angelov 2025-03-06 18:51:28 +02:00
parent cac026aec1
commit 86740bb0a7
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED
3 changed files with 8 additions and 6 deletions

View file

@ -41,8 +41,8 @@ pub fn (mut s System) update(dt f64) {
moved++
}
}
$if trace_moves_spool_to_sbin ? {
if moved != 0 {
if moved != 0 {
$if trace_moves_spool_to_sbin ? {
eprintln('${moved:4} particles s.pool -> s.bin')
}
}
@ -88,8 +88,8 @@ pub fn (mut s System) explode(x f32, y f32) {
moved++
reserve--
}
$if trace_moves_sbin_to_spool ? {
if moved != 0 {
if moved != 0 {
$if trace_moves_sbin_to_spool ? {
eprintln('${moved:4} particles s.bin -> s.pool')
}
}

View file

@ -56,8 +56,8 @@ fn (mut a App) run() {
init_userdata_cb: init
frame_userdata_cb: frame
event_userdata_cb: event
window_title: title.str
html5_canvas_name: title.str
window_title: &char(title.str)
html5_canvas_name: &char(title.str)
cleanup_userdata_cb: cleanup
}
sapp.run(&desc)