mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 23:43:40 +00:00
generalize -scheduler=none to support most platforms
This commit is contained in:
@@ -12,3 +12,11 @@ func sleep(duration int64) {
|
||||
func getSystemStackPointer() uintptr {
|
||||
return getCurrentStackPointer()
|
||||
}
|
||||
|
||||
// run is called by the program entry point to execute the go program.
|
||||
// With the "none" scheduler, init and the main function are invoked directly.
|
||||
func run() {
|
||||
initAll()
|
||||
postinit()
|
||||
callMain()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user