⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 massert.h

📁 MiniSip Client with DomainKeys Authentication, Sip, Audio communications, Echo Cancel
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -