Browse Source

Add zombie API

Hugh Sanderson 13 years ago
parent
commit
c9267b6518
1 changed files with 10 additions and 0 deletions
  1. 10 0
      std/cpp/vm/Gc.hx

+ 10 - 0
std/cpp/vm/Gc.hx

@@ -19,6 +19,16 @@ class Gc
 
 
    #if gc_extra
    #if gc_extra
    // Can't add these until the next hxcpp release....
    // Can't add these until the next hxcpp release....
+   static public function doNotKill(inObject:Dynamic) : Void
+   {
+      untyped __global__.__hxcpp_gc_do_not_kill(inObject);
+   }
+
+   static public function getNextZombie() : Dynamic
+   {
+      return untyped __global__.__hxcpp_get_next_zombie();
+   }
+
    static public function safePoint() : Void
    static public function safePoint() : Void
    {
    {
       untyped __global__.__hxcpp_gc_safe_point();
       untyped __global__.__hxcpp_gc_safe_point();