2
0
Эх сурвалжийг харах

added Allocation.toString()

Nicolas Cannasse 8 жил өмнө
parent
commit
6c0c5a869f
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      std/hl/Profile.hx

+ 3 - 0
std/hl/Profile.hx

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