Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
出于好奇:为什么某些 C 编译器(例如 gcc、clang、icc)允许__func__在文件范围内使用?
__func__
比较:msvc(和其他一些)没有。
现场演示:https ://godbolt.org/z/dK9zqbrM8 。