Skip to content

Commit

Permalink
chore: remove now obsolete declaration of "c" calling convention in f…
Browse files Browse the repository at this point in the history
…oreign block

> [..] Procedure declarations in foreign blocks default to the “c” calling convention [..]
Ref.: https://odin-lang.org/news/binding-to-c/#calling-conventions
  • Loading branch information
ttytm committed Oct 12, 2024
1 parent 2c870ca commit f9432bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webui.odin
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f9432bf

Please sign in to comment.