Nicolas Cannasse преди 8 години
родител
ревизия
86004f5c62
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      std/hl/Gc.hx

+ 2 - 2
std/hl/Gc.hx

@@ -52,7 +52,7 @@ class Gc {
 		a change has been performed since last check. The callback parameter is true if the object was collected.
 		a change has been performed since last check. The callback parameter is true if the object was collected.
 		It is necessary to enable the Track flag in Gc.flags
 		It is necessary to enable the Track flag in Gc.flags
 	**/
 	**/
-	public static function track( obj : Dynamic, field : String, callb : Dynamic -> Bool -> Void ) {
+	public static function track( obj : Dynamic, field : String, callb : Dynamic -> Bytes -> Void ) {
 		var oval = if( Reflect.isFunction(obj) ) Api.getClosureValue(obj) else obj;
 		var oval = if( Reflect.isFunction(obj) ) Api.getClosureValue(obj) else obj;
 		var fid = if( ~/^[0-9]+$/.match(field) ) Std.parseInt(field) else @:privateAccess field.bytes.hash();
 		var fid = if( ~/^[0-9]+$/.match(field) ) Std.parseInt(field) else @:privateAccess field.bytes.hash();
 		if( !_track(oval, fid, callb) )
 		if( !_track(oval, fid, callb) )
@@ -92,7 +92,7 @@ class Gc {
 	@:hlNative("std", "gc_enable") public static function enable( b : Bool ) : Void {}
 	@:hlNative("std", "gc_enable") public static function enable( b : Bool ) : Void {}
 	@:hlNative("std", "gc_major") public static function major() : Void {}
 	@:hlNative("std", "gc_major") public static function major() : Void {}
 	@:hlNative("std", "gc_stats") static function _stats( totalAllocated : hl.Ref<Float>, allocationCount : hl.Ref<Float>, currentMemory : hl.Ref<Float> ) : Void {}
 	@:hlNative("std", "gc_stats") static function _stats( totalAllocated : hl.Ref<Float>, allocationCount : hl.Ref<Float>, currentMemory : hl.Ref<Float> ) : Void {}
-	@:hlNative("std", "gc_track") static function _track( obj : Dynamic, fid : Int, callb : Dynamic -> Bool -> Void ) : Bool { return false; }
+	@:hlNative("std", "gc_track") static function _track( obj : Dynamic, fid : Int, callb : Dynamic -> Bytes -> Void ) : Bool { return false; }
 	@:hlNative("std", "gc_untrack") static function _untrack( obj : Dynamic ) : Bool { return false; }
 	@:hlNative("std", "gc_untrack") static function _untrack( obj : Dynamic ) : Bool { return false; }
 
 
 	@:hlNative("std", "gc_get_flags") static function _get_flags() : Int { return 0; }
 	@:hlNative("std", "gc_get_flags") static function _get_flags() : Int { return 0; }