aboutsummaryrefslogtreecommitdiff
path: root/core/runtime/procs_js.odin
blob: d3e12410c272635f3b8d38f388d6b407378ebc1e (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
}