在online manual , 我可以看到,
Nested functions are supported as an extension in GNU C, but are not supported by GNU C++.
这是什么意思?我如何获得该扩展?
最佳答案
您不需要获取扩展。这是 GNU C
编译器中嵌入的功能。
FWIW,此处的扩展 指向 C 标准的扩展。详细说明,来自online manual
6 . Extensions
GNU C provides several language features not found in ISO standard C. (The -pedantic option directs GCC to print a warning message if any of these features is used.) To test for the availability of these features in conditional compilation, check for a predefined macro GNUC, which is always defined under GCC.
关于c - "extension"中 "Nested functions are supported as an extension in GNU C"的处理是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34413081/