diff --git a/incremental-cj/runtime/cjpm.toml b/incremental-cj/runtime/cjpm.toml index 5af23c773ae28a76ffbc6aef4497e36b66161182..1eb7795b1cfabe8354d34ed5a5ef01d7e91f4691 100644 --- a/incremental-cj/runtime/cjpm.toml +++ b/incremental-cj/runtime/cjpm.toml @@ -2,7 +2,7 @@ [package] cjc-version = "0.53.4" - compile-option = "../runtime/CallsiteKey.o" # other apps are also depend on this relative path + compile-option = "" # other apps are also depend on this relative path description = "Incremental Runtime" link-option = "" name = "KoalaRuntime" diff --git a/interop/src/cangjie/Finalizable.cj b/interop/src/cangjie/Finalizable.cj index 73f7c9f9f2211d0aca2c054b4315f335e26bc2b6..555922042441854b855519bee120ec2bedc93584 100644 --- a/interop/src/cangjie/Finalizable.cj +++ b/interop/src/cangjie/Finalizable.cj @@ -22,4 +22,12 @@ public open class Finalizable { this.ptr = ptr this.finalizer = finalizer } -} \ No newline at end of file +} + +public abstract class MaterializedBase { + public var peer: Option = Option.None + + public func getPeer(): ?Finalizable { + return this.peer + } +} diff --git a/interop/src/cangjie/InteropTypes.cj b/interop/src/cangjie/InteropTypes.cj index a4679b852f4c344f0fda2d0f3759fb16e2005ed3..1be75c02185af98b576de76e849257969a471168 100644 --- a/interop/src/cangjie/InteropTypes.cj +++ b/interop/src/cangjie/InteropTypes.cj @@ -17,6 +17,7 @@ package Interop import std.collection.* public type KPointer = UInt64 +public type KFloat = Float32 public type pointer = KPointer public type KInt = Int32 public type KStringPtr = String