mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 11:07:46 +00:00
4adc661197
* upgrade net * add some missing crypto and os API (#5488) * add missing crypto API * gofmt crypto/tls/common.go * pull new net with unixsock formatted * update net to latest main
28 lines
628 B
Go
28 lines
628 B
Go
package runtime
|
|
|
|
// Stub for NumCgoCall, does not return the real value
|
|
func NumCgoCall() int {
|
|
return 0
|
|
}
|
|
|
|
// Stub for NumGoroutine, does not return the real value
|
|
func NumGoroutine() int {
|
|
return 1
|
|
}
|
|
|
|
// Stub for Breakpoint, does not do anything.
|
|
func Breakpoint() {
|
|
panic("Breakpoint not supported")
|
|
}
|
|
|
|
// Stub for SetBlockProfileRate, does not do anything. TinyGo has no block
|
|
// profiler.
|
|
func SetBlockProfileRate(rate int) {
|
|
}
|
|
|
|
// Stub for SetMutexProfileFraction, does not do anything and always reports the
|
|
// previous rate as 0. TinyGo has no mutex profiler.
|
|
func SetMutexProfileFraction(rate int) int {
|
|
return 0
|
|
}
|