Learn2Live

随机笔记

  • 202306081412GRE拨测切CPP方案

  • 算法摘要

  • 202512171555c风格文件io

  • 202304231411 name mangling

  • 202512252303obs-studio区域录制

Home

❯

notes

❯

cpp

❯

宏

宏

2022年6月08日1分钟阅读

  • cpp
  • macro

do {…} while (0) 在宏定义中的作用

使用do{…}while(0)构造后的宏定义不会受到大括号、分号等的影响,总是会按你期望的方式调用运行。

see more in https://www.cnblogs.com/lanxuezaipiao/p/3535626.html


关系图谱

Created with Quartz v4.5.2 © 2025 - 2026 ❤️ Yychi