mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
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:
parent
cac026aec1
commit
86740bb0a7
3 changed files with 8 additions and 6 deletions
|
@ -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')
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue