matrefeytontias

Untitled

Apr 29th, 2017
523
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. $
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×