mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 23:13:40 +00:00
wasm,wasi: stub runtime.buffered, runtime.getchar
This commit is contained in:
@@ -49,6 +49,16 @@ func putchar(c byte) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func getchar() byte {
|
||||||
|
// dummy, TODO
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func buffered() int {
|
||||||
|
// dummy, TODO
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
//go:linkname now time.now
|
//go:linkname now time.now
|
||||||
func now() (sec int64, nsec int32, mono int64) {
|
func now() (sec int64, nsec int32, mono int64) {
|
||||||
mono = nanotime()
|
mono = nanotime()
|
||||||
|
|||||||
Reference in New Issue
Block a user