Implement runtime functions for reflect

The reflect package isn't supported yet. But at least the Go
parser/typechecker can now deal with it.
This commit is contained in:
Ayke van Laethem
2018-08-30 22:53:34 +02:00
parent b13cfc5255
commit 734b0cb6bc
3 changed files with 32 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
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
}