瀏覽代碼

added Allocation.toString()

Nicolas Cannasse 8 年之前
父節點
當前提交
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")