blob: 58bed808d1899f9967ee5909fcb4384ee25e1ecb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#+build js
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
}
|