Issue 199: Stack code always generated
Status:  WontFix
Owner: ----
Closed:  Sep 2012
Reported by mpcref, Sep 17, 2012
When I compile this class:

class Hello {
  static function main():Void {
    Sys.println("Hello World");
  }
}

The generated main function looks like this:

Void Hello_obj::main( ){
{
		HX_STACK_PUSH("Hello::main","Hello.hx",2);
		HX_STACK_LINE(2)
		::Sys_obj::println(HX_CSTRING("Hello World"));
	}
return null();
}

Shouldn't the stack overhead code only be generated for debug builds?
Tested on Linux for both the latest version on haxelib as well as the latest SVN revision r581.
Sep 17, 2012
Project Member #1 gameh...@gmail.com
HI,
These get "#defined" out unless the appropriate command line options are used.
So there should be no slowdown in the release case.
Status: WontFix
Sep 18, 2012
#2 mpcref
Ah, thanks for clearing that up! :)