在哪里可以找到保留标识符"__CLIBNS"的原始定义?

Where can i find the original definition of the reserved identifier "__CLIBNS"?

本文关键字:CLIBNS 原始 定义 标识符 保留 在哪里      更新时间:2023-10-16

我在ARM编译器的标准头文件stdint.h中看到以下定义:

             #undef __CLIBNS
             #ifdef __cplusplus
             namespace std {
             #define __CLIBNS ::std:: 
             extern "C" {
             #else /* ndef __cplusplus */
             #define __CLIBNS
             #endif /* ndef __cplusplus */

这有什么意义?在哪里可以找到保留标识符"__CLIBNS"的原始定义?

在哪里可以找到保留标识符"__CLIBNS"的原始定义?

在你发布的代码的第4行。

代码是这样写的,以确保宏只定义一次,并且它解析为::std::