惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
博客园 - 司徒正美
小众软件
小众软件
H
Help Net Security
博客园 - 聂微东
宝玉的分享
宝玉的分享
Jina AI
Jina AI
酷 壳 – CoolShell
酷 壳 – CoolShell
阮一峰的网络日志
阮一峰的网络日志
M
MIT News - Artificial intelligence
博客园 - 【当耐特】
U
Unit 42
大猫的无限游戏
大猫的无限游戏
Apple Machine Learning Research
Apple Machine Learning Research
S
SegmentFault 最新的问题
腾讯CDC
MongoDB | Blog
MongoDB | Blog
云风的 BLOG
云风的 BLOG
J
Java Code Geeks
I
InfoQ
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Martin Fowler
Martin Fowler
博客园 - 三生石上(FineUI控件)
Vercel News
Vercel News

博客园 - DotNet1010

.NET 6 的 docker 镜像可以有多小 Code UTF-8 Console GB2312 Linux 中文乱码 穿透式监管与CTP swagger 兼容 docker 转发 配置 rust-must-know-crates-5ad8 100DayOfRust python C# DES 加密转换 The Little Book of Rust Books .NET 5 WPF 配置文件变动 程序自动刷新 (reloadOnChange) C# 高精度定时器 NET number values such as positive and negative infinity cannot be written as valid JSON C# 各种序列化方案比较 Python3 HDF5 中英文混合存储 MVVM WPF 简化 类的开发 websocket-per-message-compression Asp.net Core WebSocket 支持压缩 Redis 监控工具 期货行情查看客户端下载 完美解决windows10磁盘占用100%并出现卡顿、假死无反应 How to disable the unused macros warning? --rust 看阿里架构师是如何在高并发的情景下运筹帷幄
rust 条件编译 Debug Release
DotNet1010 · 2021-02-10 · via 博客园 - DotNet1010
#[cfg(debug_assertions)]
macro_rules! debug {
     () => (std::println!());
     ($($arg:tt)*) => ({
      println!($($arg)*);
     })
}
#[cfg(not(debug_assertions))]
macro_rules! debug {
    () => {};
    ($($arg:tt)*) => {};
}
fn main() {
    debug!("debug");
    debug!("debug {} {} {:?}", 1, 2, 3);
}

 可以不加 () => (std::println!());