Created
July 4, 2014 11:09
-
-
Save sinkuu/b8d648e39a26fdf116d5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import std.stdio; | |
| void debugWriteln(T...)(T args) pure @trusted nothrow | |
| { | |
| debug | |
| { | |
| try writeln(args); catch assert(false); | |
| } | |
| } | |
| void main() pure @safe nothrow | |
| { | |
| debugWriteln("hello! ", 123); | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
こちらの方がスマートですね。 https://twitter.com/9rnsr/status/485128644419809280