EmailScheduler/MailCore.framework/Versions/A/Headers/MCLog.h
2014-09-13 17:13:32 -05:00

29 lines
625 B
C

#ifndef MAILCORE_MCLOG_H
#define MAILCORE_MCLOG_H
#include <stdio.h>
#define MCLog(...) MCLogInternal(NULL, __FILE__, __LINE__, 0, __VA_ARGS__)
#define MCLogStack(...) MCLogInternal(NULL, __FILE__, __LINE__, 1, __VA_ARGS__)
extern int MCLogEnabled;
#ifndef __printflike
#define __printflike(a,b)
#endif
#ifdef __cplusplus
extern "C" {
#endif
void MCLogInternal(const char * user,
const char * filename,
unsigned int line,
int dumpStack,
const char * format, ...) __printflike(5, 6);
#ifdef __cplusplus
}
#endif
#endif