久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <small id='52O4c'></small><noframes id='52O4c'>

      <i id='52O4c'><tr id='52O4c'><dt id='52O4c'><q id='52O4c'><span id='52O4c'><b id='52O4c'><form id='52O4c'><ins id='52O4c'></ins><ul id='52O4c'></ul><sub id='52O4c'></sub></form><legend id='52O4c'></legend><bdo id='52O4c'><pre id='52O4c'><center id='52O4c'></center></pre></bdo></b><th id='52O4c'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='52O4c'><tfoot id='52O4c'></tfoot><dl id='52O4c'><fieldset id='52O4c'></fieldset></dl></div>
      1. <tfoot id='52O4c'></tfoot><legend id='52O4c'><style id='52O4c'><dir id='52O4c'><q id='52O4c'></q></dir></style></legend>
          <bdo id='52O4c'></bdo><ul id='52O4c'></ul>

        __FILE__、__LINE__ 和 __FUNCTION__ 在 C++ 中的用法

        __FILE__, __LINE__, and __FUNCTION__ usage in C++(__FILE__、__LINE__ 和 __FUNCTION__ 在 C++ 中的用法)
      2. <tfoot id='JVsq1'></tfoot>
      3. <legend id='JVsq1'><style id='JVsq1'><dir id='JVsq1'><q id='JVsq1'></q></dir></style></legend>

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

          <tbody id='JVsq1'></tbody>

            <bdo id='JVsq1'></bdo><ul id='JVsq1'></ul>

                • <i id='JVsq1'><tr id='JVsq1'><dt id='JVsq1'><q id='JVsq1'><span id='JVsq1'><b id='JVsq1'><form id='JVsq1'><ins id='JVsq1'></ins><ul id='JVsq1'></ul><sub id='JVsq1'></sub></form><legend id='JVsq1'></legend><bdo id='JVsq1'><pre id='JVsq1'><center id='JVsq1'></center></pre></bdo></b><th id='JVsq1'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='JVsq1'><tfoot id='JVsq1'></tfoot><dl id='JVsq1'><fieldset id='JVsq1'></fieldset></dl></div>
                  本文介紹了__FILE__、__LINE__ 和 __FUNCTION__ 在 C++ 中的用法的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  假設您的 C++ 編譯器支持它們,是否有任何特殊原因使用 __FILE____LINE____FUNCTION__ 用于記錄和調試目的?

                  Presuming that your C++ compiler supports them, is there any particular reason not to use __FILE__, __LINE__ and __FUNCTION__ for logging and debugging purposes?

                  我主要關心的是向用戶提供誤導性數據——例如,報告不正確的行號或由于優化而導致的函數——或因此導致性能下降.

                  I'm primarily concerned with giving the user misleading data—for example, reporting the incorrect line number or function as a result of optimization—or taking a performance hit as a result.

                  基本上,我可以相信 __FILE____LINE____FUNCTION__總是做正確的事嗎?>

                  Basically, can I trust __FILE__, __LINE__ and __FUNCTION__ to always do the right thing?

                  推薦答案

                  __FUNCTION__ 是非標準的,__func__ 存在于 C99/C++11 中.其他的(__LINE____FILE__)都很好.

                  __FUNCTION__ is non standard, __func__ exists in C99 / C++11. The others (__LINE__ and __FILE__) are just fine.

                  它總是會報告正確的文件和行(如果您選擇使用 __FUNCTION__/__func__,則會報告正確的文件和行).優化是一個非因素,因為它是一個編譯時宏擴展;它絕不會以任何方式影響性能.

                  It will always report the right file and line (and function if you choose to use __FUNCTION__/__func__). Optimization is a non-factor since it is a compile time macro expansion; it will never affect performance in any way.

                  這篇關于__FILE__、__LINE__ 和 __FUNCTION__ 在 C++ 中的用法的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Why do two functions have the same address?(為什么兩個函數的地址相同?)
                  Why the initializer of std::function has to be CopyConstructible?(為什么 std::function 的初始化程序必須是可復制構造的?)
                  mixing templates with polymorphism(混合模板與多態性)
                  When should I use the keyword quot;typenamequot; when using templates(我什么時候應該使用關鍵字“typename?使用模板時)
                  Dependent name resolution amp; namespace std / Standard Library(依賴名稱解析命名空間 std/標準庫)
                  gcc can compile a variadic template while clang cannot(gcc 可以編譯可變參數模板,而 clang 不能)

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

                      <tfoot id='nX1dc'></tfoot>
                        <bdo id='nX1dc'></bdo><ul id='nX1dc'></ul>

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

                            <tbody id='nX1dc'></tbody>
                          1. <legend id='nX1dc'><style id='nX1dc'><dir id='nX1dc'><q id='nX1dc'></q></dir></style></legend>

                            主站蜘蛛池模板: 久久99精品久久久久久国产越南 | 日韩欧美中文 | 欧美一区二区免费 | 久久久久国产精品一区 | aacc678成免费人电影网站 | 欧美一区二区三区日韩 | 国产精品99久久久久久大便 | 亚洲精品在线免费 | 久久久123 | julia中文字幕久久一区二区 | 亚洲欧美综合精品久久成人 | 天天色天天色 | 精品一区二区久久久久久久网站 | 国产无人区一区二区三区 | 亚洲成人精品影院 | 国产美女在线看 | 青久草视频 | 亚洲一区二区在线免费观看 | 日韩欧美在线视频 | 精品一区二区三区四区 | 欧美日韩黄色一级片 | 日韩理论电影在线观看 | 久草新在线 | 日本久久久一区二区三区 | 黄色在线免费观看视频 | 久久久www成人免费精品 | 国产成人麻豆免费观看 | 免费簧片视频 | 九色一区 | 欧美日本亚洲 | 成人免费av在线 | 久久久国产精品 | 男人天堂社区 | 久久久亚洲精品视频 | 亚洲乱码一区二区 | 国产在线精品一区二区 | 日韩精品免费视频 | 一区二区免费高清视频 | 欧美精品乱码久久久久久按摩 | 亚洲免费视频一区 | 欧美成人h版在线观看 |