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