tinygo/src/runtime/stack.go
Ayke van Laethem 734b0cb6bc
Implement runtime functions for reflect
The reflect package isn't supported yet. But at least the Go
parser/typechecker can now deal with it.
2018-08-30 22:53:34 +02:00

16 строки
229 Б
Go

package runtime
type Func struct {
}
func FuncForPC(pc uintptr) *Func {
return nil
}
func (f *Func) Name() string {
return ""
}
func Caller(skip int) (pc uintptr, file string, line int, ok bool) {
return 0, "", 0, false
}