mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 11:37:46 +00:00
add stub for runtime numcgocall, numgoroutine and version
This commit is contained in:
@@ -8,3 +8,17 @@ package runtime
|
||||
func NumCPU() int {
|
||||
return 1
|
||||
}
|
||||
|
||||
// NumCgoCall returns the number of cgo calls made by the current process.
|
||||
func NumCgoCall() int {
|
||||
return 0
|
||||
}
|
||||
|
||||
// NumGoroutine returns the number of goroutines that currently exist.
|
||||
func NumGoroutine() int {
|
||||
return 1
|
||||
}
|
||||
|
||||
func Version() string {
|
||||
return "v0.1.0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user