Browse Source

wasm,wasi: stub runtime.buffered, runtime.getchar

pull/3037/head
sago35 2 years ago
committed by Ayke
parent
commit
25c8d3ec3a
  1. 10
      src/runtime/runtime_tinygowasm.go

10
src/runtime/runtime_tinygowasm.go

@ -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
func now() (sec int64, nsec int32, mono int64) {
mono = nanotime()

Loading…
Cancel
Save