From 696a473979f8bfaf4b8343ad3e4f7dabbcfdd14c Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Sat, 12 Oct 2024 21:53:45 +0200 Subject: [PATCH] chore: remove "c" calling convention declaration from wrapped `script` proc --- webui.odin | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webui.odin b/webui.odin index c741d66..fb15c37 100644 --- a/webui.odin +++ b/webui.odin @@ -194,7 +194,7 @@ run :: proc(win: Window, script: string) { } // Run JavaScript and get the response back (Make sure your local buffer can hold the response). -script :: proc "c" ( +script :: proc( win: Window, script: string, buffer_len: uint = 8 * 1024, @@ -203,7 +203,6 @@ script :: proc "c" ( string, Error, ) { - context = runtime.default_context() buf := make([^]byte, buffer_len) res := webui_script( win,