我正在开发 Android 音频驱动程序。如果我需要在构造函数中添加调试函数“LOGD” Mutex::Autolock::Autolock(Mutex& mutex)
,它定义在"frameworks/base/include/utils/threads.h"
我已经包含了,但仍然存在编译错误:
frameworks/base/include/utils/threads.h:244:1:错误:宏“LOG”传递了 6 个参数,但只需要 1 个
我猜这是因为关键字inline
阻止了外部宏,但不确定。
我怎么解决这个问题?提前致谢!