com.github.johnreedlol.Macro
Same as Debug.assert, but prints the code instead of an error message.
the string containing what was printed or what would have been printed if printing was enabled. You can pass this string into a logger.
val one = 1; Debug.assertCode({one + 1 == 2}, 0) // 0 lines of stack trace
val one = 1; Debug.assertCode{one + 1 == 2}
Same as Debug.assert, but prints the code instead of an error message.
the string containing what was printed or what would have been printed if printing was enabled. You can pass this string into a logger.
val one = 1; Debug.assertCode({one + 1 == 2}, 0) // 0 lines of stack trace
val one = 1; Debug.assertCode{one + 1 == 2}