mal_exception.h

来自「一个内存数据库的源代码这是服务器端还有客户端」· C头文件 代码 · 共 47 行

H
47
字号
#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 + =
减小字号Ctrl + -
显示快捷键?