mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-18 11:33:59 +00:00
add stub for runtime numcgocall, numgoroutine and version
This commit is contained in:
@@ -8,3 +8,17 @@ package runtime
|
|||||||
func NumCPU() int {
|
func NumCPU() int {
|
||||||
return 1
|
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