aboutsummaryrefslogtreecommitdiff
path: root/base/runtime/procs_js.odin
blob: 3690f9436854e466b48cd51b1f3ec19a60309571 (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 "contextless" () {
	__init_context(&init_default_context_for_js)
}

@(export)
@(link_name="default_context_ptr")
default_context_ptr :: proc "contextless" () -> ^Context {
	return &init_default_context_for_js
}