VARIADIC MACRO

http://en.wikipedia.org/wiki/Variadic_macro

 

宏的变参写法:比如log常常会用到进行分类,用宏来简化书写,可以这样

#define RENDER_LOG(...) BMLog::GetInstance()->LogToDebug(ELT_Render, __VA_ARGS__) 

你可能感兴趣的:(VARIADIC MACRO)