2
0
Mark Sibly 9 жил өмнө
parent
commit
09c5ab8754

+ 10 - 0
modules/monkey/gc.monkey2

@@ -3,4 +3,14 @@ Namespace monkey.gc
 
 Extern
 
+#rem monkeydoc Performs a garbage collection.
+
+Marks all unused memory as 'garbage' and makes it available for reuse in the future.
+
+You should not generally need to use this method as garbage collection is performed automatically.
+
+However, it can be useful when debugging a program for memory leaks to force a garbage collection to
+run.
+
+#end
 Function GCCollect:Void()="bbGC::collect"