Created
January 18, 2019 00:20
-
-
Save hgzimmerman/19508b3876f80dd5478877be8b60f715 to your computer and use it in GitHub Desktop.
debug debug
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
macro_rules! debug_dbg { | |
($($x: tt)*) => {{ | |
if cfg!(debug_assertions) { | |
dbg!($($x)*) | |
} else { | |
$($x)* | |
} | |
}} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment