I am converting an Objective C
code to Swift
. Found out this code :
#define MPLog(fmt, ...) \
do { \
if ([MPPush getLoggingPref] && ![MPPush getEnvironmentPref]) { \
NSLog(fmt, ##__VA_ARGS__); \
} \
} while(0)
I am aware what this code does but I am not able to convert this. I found this great link but this has only Objective C
reference.