Explorar o código

added Allocation.toString()

Nicolas Cannasse %!s(int64=8) %!d(string=hai) anos
pai
achega
6c0c5a869f
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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")