liw_error.h
来自「This document is intended to serve as an」· C头文件 代码 · 共 51 行
H
51 行
#ifndef liw_error_h#define liw_error_h/* Error handling */enum liw_error { Undefined_Error=0, Malloc_Error=1, Output_Image_Error=2, Input_Image_Error=3};/* Can't use const here! */#define SizeOneMess 7#define NumberMess 16#ifndef noerrormessage#define CATCHFAIL(ins) if ((ins)==FAILURE) { Error_Message_Add(FILEID,__LINE__); return FAILURE; }#else#define CATCHFAIL(ins) if ((ins)==FAILURE) { return FAILURE; }#endif#ifndef noerrormessage#define CATCHFAILLAB(ins,lab) if ((ins)==FAILURE) { Error_Message_Add(FILEID,__LINE__); goto lab; }#else#define CATCHFAILLAB(ins,lab) if ((ins)==FAILURE) { goto lab; }#endif#ifndef noerrormessage#define CATCHFAILNULL(ins) if ((ins)==FAILURE) { Error_Message_Add(FILEID,__LINE__); return NULL; }#else#define CATCHFAILNULL(ins) if ((ins)==FAILURE) { return NULL; }#endif#ifndef noerrormessageextern char ErrorMess[NumberMess*SizeOneMess+1];extern INT32 ErrorMessCur;void Error_Message_Add(char const * fileid, int line);void Error_Message_Print();void Error_Message_CleanLast();void Error_Message_Clean();BOOLEAN Error_Status();#endif#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?