浏览代码

Return the count of traced objects

Hugh Sanderson 14 年之前
父节点
当前提交
2cbc6e5a41
共有 1 个文件被更改,包括 2 次插入2 次删除
  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);
    }
 
 }