Advertisement
matrefeytontias

Untitled

Apr 29th, 2017
3,079
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Haxe 0.69 KB | None | 0 0
  1. import haxepunk.Scene;
  2. import haxepunk.graphics.Spritemap;
  3.  
  4. import cpp.vm.ExecutionTrace;
  5.  
  6. class MainScene extends Scene
  7. {
  8.     private var s:Spritemap;
  9.    
  10.     override public function begin()
  11.     {
  12.         s = new Spritemap("graphics/player_kaira2.png", 75, 64);
  13.         trace(s == null ? "null" : "not null");
  14.         ExecutionTrace.traceFunctions();
  15.         trace(s);
  16.         ExecutionTrace.traceOff();
  17.     }
  18. }
  19. ---------------------------------------------------
  20. $ lime run cpp -debug
  21. MainScene.hx:13: not null
  22. GC::new : 20
  23. GC::new : 8
  24. GC::new : 20
  25. GC::new : 20
  26. GC::new : 20
  27. haxe.Log::__default_trace : 77
  28. haxepunk.graphics.Image::toString : 316
  29. GC::new : 29
  30. GC::new : 30
  31. haxepunk.graphics.Image::get_width : 294
  32. $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement