Browse Source

Return the count of traced objects

Hugh Sanderson 14 years ago
parent
commit
2cbc6e5a41
1 changed files with 2 additions and 2 deletions
  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();
       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);
    }
    }
 
 
 }
 }