cpp
约 1 分钟阅读
- cpp -> C PreProcessor
__FILE__,__LINE____FUNCTION____func__- C++11
predefined identifier
__LINE__: The line number of the current source line (a decimal constant).
__FILE__: The presumed name of the source file (a character string literal).
__DATE__: The date of translation of the source file (a character string literal...)
__TIME__: The time of translation of the source file (a character string literal...)
__STDC__: Whether__STDC__ is predefined
__cplusplus: The name __cplusplus is defined to the value 199711L when compiling a C ++ translation unit关联信息
反向链接、本文链接的其他页面和外部资料。
参考资料
其他外链2 条
- en.cppreference.com/w/cpp/utility/source_locationen.cppreference.com/w/cpp/utility/source_location
- www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1642.htmlwww.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1642.html