Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
与LINE类似的问题
但是当我替换__LINE__为__FUNCTION__. 宏连接字符串文字“ __FUNCTION__”而不是实际的函数名。
__LINE__
__FUNCTION__
__FUNCTION__不是宏,它是隐式声明的静态数组。__func__,__PRETTY_FUNCTION__等也是如此。
__func__
__PRETTY_FUNCTION__
因此#无法处理它。如果您想将某些内容连接到它,您必须在运行时执行此操作。
#