From f9432bf0fe64d39c0f0fd7c0ca70ec1bab6a0e98 Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Sat, 12 Oct 2024 21:52:23 +0200 Subject: [PATCH] chore: remove now obsolete declaration of "c" calling convention in foreign block MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > [..] Procedure declarations in foreign blocks default to the ā€œcā€ calling convention [..] Ref.: https://odin-lang.org/news/binding-to-c/#calling-conventions --- webui.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui.odin b/webui.odin index fe53f8d..c741d66 100644 --- a/webui.odin +++ b/webui.odin @@ -76,7 +76,7 @@ foreign webui { // Create a new webui window object using a specified window number. new_window_id :: proc(id: c.size_t) -> Window --- // Bind a specific html element click event with a function. Empty element means all events. - bind :: proc(win: Window, name: cstring, fn: proc "c" (e: ^Event)) -> c.size_t --- + bind :: proc(win: Window, name: cstring, fn: proc(e: ^Event)) -> c.size_t --- // Same as `webui_show()`. But using a specific web browser. show_browser :: proc(win: Window, content: cstring, browser: Browser) -> bool --- // Wait until all opened windows get closed.