Skip to content

Commit 696a473

Browse files
committed
chore: remove "c" calling convention declaration from wrapped script proc
1 parent f9432bf commit 696a473

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

webui.odin

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ run :: proc(win: Window, script: string) {
194194
}
195195

196196
// Run JavaScript and get the response back (Make sure your local buffer can hold the response).
197-
script :: proc "c" (
197+
script :: proc(
198198
win: Window,
199199
script: string,
200200
buffer_len: uint = 8 * 1024,
@@ -203,7 +203,6 @@ script :: proc "c" (
203203
string,
204204
Error,
205205
) {
206-
context = runtime.default_context()
207206
buf := make([^]byte, buffer_len)
208207
res := webui_script(
209208
win,

0 commit comments

Comments
 (0)