I am using C++ Builder XE3.
Currently I have such macro as below:
#define LOGG(message, ...) OTHER_LIB_LOG(message,__VA_ARGS__)
Now I want to make all arguments be AnsiString. It is easy for me to deal with the argument: message like below:
#define LOGG(message, ...) OTHER_LIB_LOG(AnsiString(message),__VA_ARGS__)
But for VA_ARGS, I do not know how to deal with the arguments to make sure all arguments which are put to OTHER_LIB_LOG
are AnsiString.
It is hard for me to modify the source code of OTHER_LIB_LOG
, so I have to do this with Macro.
Any help will be appreciated.