📄 massert.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 + -