From 632137a2b2c0c0bf8aef4c76c45589a778a782a2 Mon Sep 17 00:00:00 2001 From: Dmitry Matveyev Date: Fri, 12 Jan 2024 17:54:35 +0300 Subject: [PATCH] Fix wasm4 bindings for Odin Every foreign declaration requires declaring a calling convention. --- cli/assets/templates/odin/src/w4/wasm4_wasm32.odin | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/assets/templates/odin/src/w4/wasm4_wasm32.odin b/cli/assets/templates/odin/src/w4/wasm4_wasm32.odin index 203cefa1..864fcc3c 100644 --- a/cli/assets/templates/odin/src/w4/wasm4_wasm32.odin +++ b/cli/assets/templates/odin/src/w4/wasm4_wasm32.odin @@ -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) ---