haxetink / tink_await

Haxe async/await
MIT License
58 stars 15 forks source link

Don't print the transformed function #7

Closed kevinresol closed 8 years ago

kevinresol commented 8 years ago

Currently, when the codebase is compiled with the -debug flag, the transformed function gets printed out in the terminal. I think a better way is to use a define (e.g. -D await_debug) to guard that.

For example, I compile to js and I need the -debug flag for the source mapping, but I don't need await's debug print. That could probably save us a little bit compile time.