Browse Source

Return the count of traced objects

Hugh Sanderson 14 năm trước cách đây
mục cha
commit
2cbc6e5a41
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      std/cpp/vm/Gc.hx

+ 2 - 2
std/cpp/vm/Gc.hx

@@ -12,9 +12,9 @@ class Gc
       untyped __global__.__hxcpp_collect();
    }
 
-   static public function trace(sought:Class<Dynamic>) : Void
+   static public function trace(sought:Class<Dynamic>,printInstances:Bool=true) : Int
    {
-      untyped __global__.__hxcpp_gc_trace(sought);
+      return untyped __global__.__hxcpp_gc_trace(sought,printInstances);
    }
 
 }