macro_rules! debug_println {
($($arg:tt)*) => { ... };
}Expand description
println @ 调试阶段
- 🎯仅在调试模式下打印输出
- 📄单元测试
- 📄debug
- 🔗参考@条件编译:https://doc.rust-lang.org/reference/conditional-compilation.html
- 🔗类似
debug_assert、debug_assert_eq等宏 - ⚠️【2024-09-13 16:28:53】目前未找到有效方法为此类宏编写测试