Selaa lähdekoodia

added Allocation.toString()

Nicolas Cannasse 8 vuotta sitten
vanhempi
commit
6c0c5a869f
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      std/hl/Profile.hx

+ 3 - 0
std/hl/Profile.hx

@@ -12,6 +12,9 @@ class Allocation {
 		this.count = count;
 		this.count = count;
 		this.size = size;
 		this.size = size;
 	}
 	}
+	@:keep public function toString() {
+		return t + "(" + count + ")";
+	}
 }
 }
 
 
 @:hlNative("std")
 @:hlNative("std")