Visual C++ equivalent of __FILE__ , __LINE__ and __PRETTY_FUNCTION__

后端 未结 8 2259
后悔当初
后悔当初 2020-12-14 08:50

GCC compiler gives me the following macros:

  • __FILE__ so that I can print out the file name + directory.
  • __LINE__ so that I c
8条回答
  •  半阙折子戏
    2020-12-14 09:22

    For more portability in getting the current function name, you can try BOOST_CURRENT_FUNCTION.

提交回复
热议问题