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

📄 mal_exception.h

📁 一个内存数据库的源代码这是服务器端还有客户端
💻 H
字号:
#ifndef _MAL_EXCEPTION_H#define _MAL_EXCEPTION_H#include "mal_instruction.h"/* #define _DEBUG_EXCEPTION_		trace the exception handling *//* These are the exceptions known, adding new ones here requires to also * add the "full" name to the exceptionNames array below */enum malexception {	MAL=0,	ILLARG,	OUTOFBNDS,	IO,	INVCRED,	OPTIMIZER,	STKOF,	SYNTAX,	TYPE,	LOADER,	PARSE,	ARITH,	PERMD,	SQL};#define MAL_SUCCEED ((str) 0) /* no error */#define throw \	return createException#define rethrow(FCN, TMP, PRV) \	if ((TMP = PRV) != MAL_SUCCEED) return(TMP);mal_export str	createException(enum malexception, str, str, ...);mal_export void	showException(enum malexception, str, str, ...);mal_export str	createScriptException(MalBlkPtr, int, enum malexception, str, str, ...);mal_export void	showScriptException(MalBlkPtr, int, enum malexception, str, ...);mal_export enum malexception	getExceptionType(str);mal_export str	getExceptionPlace(str);mal_export str	getExceptionMessage(str);mal_export str	exceptionToString(enum malexception);#endif /*  _MAL_EXCEPTION_H*/

⌨️ 快捷键说明

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