Skip to content

Commit

Permalink
chore: remove "c" calling convention declaration from wrapped `script…
Browse files Browse the repository at this point in the history
…` proc
  • Loading branch information
ttytm committed Oct 12, 2024
1 parent f9432bf commit 696a473
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions webui.odin
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -203,7 +203,6 @@ script :: proc "c" (
string,
Error,
) {
context = runtime.default_context()
buf := make([^]byte, buffer_len)
res := webui_script(
win,
Expand Down

0 comments on commit 696a473

Please sign in to comment.