aboutsummaryrefslogtreecommitdiff
path: root/core/runtime/entry_wasm.odin
blob: 235d5611b48c4a412071dc805e654c33db5f5258 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//+private
//+build wasm32, wasm64p32
package runtime

import "core:intrinsics"

when !ODIN_TEST && !ODIN_NO_ENTRY_POINT {
	@(link_name="_start", linkage="strong", require, export)
	_start :: proc "c" () {
		context = default_context()
		#force_no_inline _startup_runtime()
		intrinsics.__entry_point()
	}
	@(link_name="_end", linkage="strong", require, export)
	_end :: proc "c" () {
		context = default_context()
		#force_no_inline _cleanup_runtime()
	}
}