0
LOG_I(_module, _message, ...)
我需要創建一個包裝宏這個宏
#define WRAPPER_LOG(_module, _message, ...) LOG_I(_module, _message, ...)
我怎樣才能做到這一點?
LOG_I(_module, _message, ...)
我需要創建一個包裝宏這個宏
#define WRAPPER_LOG(_module, _message, ...) LOG_I(_module, _message, ...)
我怎樣才能做到這一點?
,如果你沒有
#define WRAPPER_LOG(_module, _message, ...) LOG_I(_module, _message, __VA_ARGS__)
它會工作,但不管是什麼,你真的需要,則是另一回事。
您不能爲宏創建「* wrapper * s」。他們不是功能!你爲什麼需要它? –
我們希望創建一個獨立於平臺的層以平臺特定的宏,以便當我們移動到一個更新的平臺時,我們不需要隨處更改代碼 – apoorvn
因此,只需'#ifdef PLATFORM_A #define LOG_I ...'等等。 –