浏览代码

neko.vm.Gc.hx documentation

From http://nekovm.org/doc/view/misc
Mark Knol 10 年之前
父节点
当前提交
5e0fa3857c
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      std/neko/vm/Gc.hx

+ 6 - 2
std/neko/vm/Gc.hx

@@ -22,16 +22,20 @@
 package neko.vm;
 
 class Gc {
-
+	/**
+		Run the Neko garbage collector.
+	*/
 	public static function run( major : Bool ) {
 		_run(major);
 	}
 
+	/**
+		Return the size of the GC heap and the among of free space, in bytes
+	*/
 	public static function stats() : { heap : Int, free : Int } {
 		return _stats();
 	}
 
 	static var _run = neko.Lib.load("std","run_gc",1);
 	static var _stats = neko.Lib.load("std","gc_stats",0);
-
 }