aboutsummaryrefslogtreecommitdiff
path: root/core/sys/wasm/js/general.odin
blob: 22bb08e2b5b6016c015622131c2040beaeeff057 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#+build js wasm32, js wasm64p32
package wasm_js_interface

foreign import "odin_env"

@(default_calling_convention="contextless")
foreign odin_env {
	trap     :: proc() -> ! ---
	abort    :: proc() -> ! ---
	alert    :: proc(msg: string) ---
	evaluate :: proc(str: string) ---
	open     :: proc(url: string, name := "", specs := "") ---
}