mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-11 06:23:39 +00:00
runtime: move KeepAlive/SetFinalizer to common code
We don't support these yet so let's just put them in a central location. Once these functions are supported we can think about how to structure the code again.
This commit is contained in:
committed by
Ron Evans
parent
398c284480
commit
f3d0195d35
@@ -27,14 +27,6 @@ func GC() {
|
||||
// Unimplemented.
|
||||
}
|
||||
|
||||
func KeepAlive(x interface{}) {
|
||||
// Unimplemented. Only required with SetFinalizer().
|
||||
}
|
||||
|
||||
func SetFinalizer(obj interface{}, finalizer interface{}) {
|
||||
// Unimplemented.
|
||||
}
|
||||
|
||||
func initHeap() {
|
||||
// Nothing to initialize.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user