Begin work in semi-standardized js_wasm32 target

This commit is contained in:
gingerBill
2021-11-07 19:56:01 +00:00
parent 1296fabe2c
commit 518460af66
18 changed files with 215 additions and 66 deletions
+15
View File
@@ -0,0 +1,15 @@
//+build js wasm32
package runtime
init_default_context_for_js: Context
@(init, private="file")
init_default_context :: proc() {
init_default_context_for_js = context
}
@(export)
@(link_name="default_context_ptr")
default_context_ptr :: proc "contextless" () -> ^Context {
return &init_default_context_for_js
}