<i id='IaTTj'><tr id='IaTTj'><dt id='IaTTj'><q id='IaTTj'><span id='IaTTj'><b id='IaTTj'><form id='IaTTj'><ins id='IaTTj'></ins><ul id='IaTTj'></ul><sub id='IaTTj'></sub></form><legend id='IaTTj'></legend><bdo id='IaTTj'><pre id='IaTTj'><center id='IaTTj'></center></pre></bdo></b><th id='IaTTj'></th></span></q></dt></tr></i><div id='IaTTj'><tfoot id='IaTTj'></tfoot><dl id='IaTTj'><fieldset id='IaTTj'></fieldset></dl></div>

    1. <tfoot id='IaTTj'></tfoot>
      <legend id='IaTTj'><style id='IaTTj'><dir id='IaTTj'><q id='IaTTj'></q></dir></style></legend>

      • <bdo id='IaTTj'></bdo><ul id='IaTTj'></ul>
    2. <small id='IaTTj'></small><noframes id='IaTTj'>

      __STDC_LIMIT_MACROS 和 __STDC_CONSTANT_MACROS 是什么意思?

      What do __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS mean?(__STDC_LIMIT_MACROS 和 __STDC_CONSTANT_MACROS 是什么意思?)
          <bdo id='fmv6R'></bdo><ul id='fmv6R'></ul>

        • <i id='fmv6R'><tr id='fmv6R'><dt id='fmv6R'><q id='fmv6R'><span id='fmv6R'><b id='fmv6R'><form id='fmv6R'><ins id='fmv6R'></ins><ul id='fmv6R'></ul><sub id='fmv6R'></sub></form><legend id='fmv6R'></legend><bdo id='fmv6R'><pre id='fmv6R'><center id='fmv6R'></center></pre></bdo></b><th id='fmv6R'></th></span></q></dt></tr></i><div id='fmv6R'><tfoot id='fmv6R'></tfoot><dl id='fmv6R'><fieldset id='fmv6R'></fieldset></dl></div>
        • <small id='fmv6R'></small><noframes id='fmv6R'>

            <tbody id='fmv6R'></tbody>
          <tfoot id='fmv6R'></tfoot>

          <legend id='fmv6R'><style id='fmv6R'><dir id='fmv6R'><q id='fmv6R'></q></dir></style></legend>

                本文介绍了__STDC_LIMIT_MACROS 和 __STDC_CONSTANT_MACROS 是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我在系统的标准 C++ 库以及我正在使用的库中的一些头文件中看到了这一点.

                I see this in the standard C++ libraries for my system, as well as some of the headers in a library I'm using.

                这两个定义的语义是什么?除了源代码本身之外,是否有这样的#defines 的良好参考?

                What are the semantics of these two definitions? Is there a good reference for #defines like this other than the source itself?

                推荐答案

                __STDC_LIMIT_MACROS__STDC_CONSTANT_MACROS 是一种允许 C++ 程序使用 stdint.h C99 标准中指定但不在 C++ 标准中的宏.UINT8_MAXINT64_MININT32_C() 等宏可能已经以其他方式在 C++ 应用程序中定义.为了让用户决定他们是否想要像 C99 那样定义的宏,许多实现要求在 stdint.h 之前定义 __STDC_LIMIT_MACROS__STDC_CONSTANT_MACROS包括在内.

                __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS are a workaround to allow C++ programs to use stdint.h macros specified in the C99 standard that aren't in the C++ standard. The macros, such as UINT8_MAX, INT64_MIN, and INT32_C() may be defined already in C++ applications in other ways. To allow the user to decide if they want the macros defined as C99 does, many implementations require that __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS be defined before stdint.h is included.

                这不是 C++ 标准的一部分,但已被多个实现采用.

                This isn't part of the C++ standard, but it has been adopted by more than one implementation.

                这篇关于__STDC_LIMIT_MACROS 和 __STDC_CONSTANT_MACROS 是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Unable to access non-const member functions of objects in C++ std::set(无法访问 C++ std::set 中对象的非常量成员函数)
                How should a size-limited stl-like container be implemented?(应该如何实现大小受限的 stl 类容器?)
                Constructing std::function argument from lambda(从 lambda 构造 std::function 参数)
                STL BigInt class implementation(STL BigInt 类实现)
                Sync is unreliable using std::atomic and std::condition_variable(使用 std::atomic 和 std::condition_variable 同步不可靠)
                Move list element to the end in STL(在 STL 中将列表元素移动到末尾)
                • <bdo id='IWw3q'></bdo><ul id='IWw3q'></ul>
                • <legend id='IWw3q'><style id='IWw3q'><dir id='IWw3q'><q id='IWw3q'></q></dir></style></legend>
                • <i id='IWw3q'><tr id='IWw3q'><dt id='IWw3q'><q id='IWw3q'><span id='IWw3q'><b id='IWw3q'><form id='IWw3q'><ins id='IWw3q'></ins><ul id='IWw3q'></ul><sub id='IWw3q'></sub></form><legend id='IWw3q'></legend><bdo id='IWw3q'><pre id='IWw3q'><center id='IWw3q'></center></pre></bdo></b><th id='IWw3q'></th></span></q></dt></tr></i><div id='IWw3q'><tfoot id='IWw3q'></tfoot><dl id='IWw3q'><fieldset id='IWw3q'></fieldset></dl></div>

                        <tbody id='IWw3q'></tbody>
                        <tfoot id='IWw3q'></tfoot>

                          <small id='IWw3q'></small><noframes id='IWw3q'>