Skip to content

Commit f9432bf

Browse files
committed
chore: remove now obsolete declaration of "c" calling convention in foreign block
> [..] Procedure declarations in foreign blocks default to the “c” calling convention [..] Ref.: https://odin-lang.org/news/binding-to-c/#calling-conventions
1 parent 2c870ca commit f9432bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webui.odin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ foreign webui {
7676
// Create a new webui window object using a specified window number.
7777
new_window_id :: proc(id: c.size_t) -> Window ---
7878
// Bind a specific html element click event with a function. Empty element means all events.
79-
bind :: proc(win: Window, name: cstring, fn: proc "c" (e: ^Event)) -> c.size_t ---
79+
bind :: proc(win: Window, name: cstring, fn: proc(e: ^Event)) -> c.size_t ---
8080
// Same as `webui_show()`. But using a specific web browser.
8181
show_browser :: proc(win: Window, content: cstring, browser: Browser) -> bool ---
8282
// Wait until all opened windows get closed.

0 commit comments

Comments
 (0)