Gc.hx 421 B

1234567891011121314151617181920
  1. package cpp.vm;
  2. class Gc
  3. {
  4. static public function enable(inEnable:Bool) : Void
  5. {
  6. untyped __global__.__hxcpp_enable(inEnable);
  7. }
  8. static public function run(major:Bool) : Void
  9. {
  10. untyped __global__.__hxcpp_collect();
  11. }
  12. static public function trace(sought:Class<Dynamic>,printInstances:Bool=true) : Int
  13. {
  14. return untyped __global__.__hxcpp_gc_trace(sought,printInstances);
  15. }
  16. }