16 lines
309 B
C
16 lines
309 B
C
|
#ifndef MAILCORE_MCASSERT_H
|
||
|
|
||
|
#define MAILCORE_MCASSERT_H
|
||
|
|
||
|
#define MCAssert(cond) MCAssertInternal(__FILE__, __LINE__, cond, #cond)
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
void MCAssertInternal(const char * filename, unsigned int line, int cond, const char * condString);
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif
|