aerror.h
来自「This program is free software you can r」· C头文件 代码 · 共 36 行
H
36 行
/** AError.h:* Macro definitions for system error treatment** Version: 1.0* Date: Thu May 6, 1999* Copyright (C) 1999, Arturo Gonzalez Escribano*/#ifndef AERROR_H#define AERROR_H#define Asystem_error(origin,diagnostic,checkpoint) \ { \ fprintf(stderr, \ "Error in FILE %s[%d] %s: %s - %s\n", \ __FILE__, __LINE__, \ origin, diagnostic,checkpoint ); \ exit(1); \ }#ifdef DEBUG#define Assert(E) if (! (E)) \ printf("Assert failed in file %s, line %d: '%s'\n",\ __FILE__,__LINE__,#E);#else#define Assert(E) {} /* no Assert */#endif#define CheckError(E,checkpoint) if (! (E)) { \ fprintf(stderr,"Error %s\n", checkpoint); exit(1); }#endif /* AERROR_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?