mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 07:23:39 +00:00
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:
@@ -56,3 +56,11 @@ func alloc(size uintptr) unsafe.Pointer {
|
||||
func free(ptr unsafe.Pointer) {
|
||||
//C.free(ptr) // TODO
|
||||
}
|
||||
|
||||
func GC() {
|
||||
// Unimplemented.
|
||||
}
|
||||
|
||||
func KeepAlive(x interface{}) {
|
||||
// Unimplemented. Only required with SetFinalizer().
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user