Skip to content

Commit

Permalink
Fix wasm4 bindings for Odin
Browse files Browse the repository at this point in the history
Every foreign declaration requires declaring a calling convention.
  • Loading branch information
greenfork authored Jan 12, 2024
1 parent d321e12 commit 632137a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/assets/templates/odin/src/w4/wasm4_wasm32.odin
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ Tone_Duration :: struct {


@(private)
@(default_calling_convention="c")
foreign wasm4 {
@(link_name="tone")
internal_tone :: proc(frequency: u32, duration_in_frames: u32, volume_percent: u32, flags: u32) ---
Expand Down

0 comments on commit 632137a

Please sign in to comment.