|
@@ -0,0 +1,12 @@
|
|
|
|
+//+build js wasm32, js wasm64
|
|
|
|
+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) ---
|
|
|
|
+}
|