massert.h

来自「MiniSip Client with DomainKeys Authentic」· C头文件 代码 · 共 34 行

H
34
字号
#ifndef _MASSERT_H#define _MASSERT_H#include <libmutil/libmutil_config.h>LIBMUTIL_API void massertFailed(char *expr, char *file, char *baseFile, int line);#ifdef NDEBUG#define massert(exp)#else/** * massert works the same way as assert except that  * if libmutil has support for stack traces, then * the current state of the stack is output. * Note that the stack trace will contain calls to * "massertFailed" and "getStackTraceString". */#ifdef _MSC_VER#include<assert.h>#define massert(exp) assert(exp)#else#ifdef __BASE_FILE__#define massert(exp) if (exp) ; else massertFailed(#exp, __FILE__, __BASE_FILE__, __LINE__)#else#define massert(exp) if (exp) ; else massertFailed(#exp, __FILE__, __FILE__, __LINE__)#endif#endif#endif#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?