debug.h,v
来自「Markov 过程」· H,V 代码 · 共 53 行
H,V
53 行
head 1.1;access;symbols;locks olethros:1.1; strict;comment @ * @;1.1date 2003.02.09.18.37.49; author olethros; state Exp;branches;next ;desc@Simple debugging.@1.1log@Initial revision@text@#ifndef DEBUG_H#define DEBUG_H#define Serror printf("ERROR (%s - %s: %d) ", __FUNCTION__,__FILE__, __LINE__); printf#define Swarning printf("WARNING (%s - %s: %d) ", __FUNCTION__,__FILE__, __LINE__); printf#define logmsg printf#define dbgmsg printf#define ReadFile(f,fs) ((fs=fopen(f,"r"))!=NULL)#define WriteFile(f,fs) ((fs=fopen(f,"w"))!=NULL)#define CloseFile(f) {assert(f); fclose(f); f = NULL;}#define AllocM(type,x) ((type *) malloc (sizeof(type)*x))#define FreeM(address) if (address) {free(address); address = NULL;} else fprintf(stderr,"pointer freed\n");/* Some cool error codes to use */#define DEC_ARG_INVALID 0x1000#define DEC_ARG_CORRUPT 0x2000#define DEC_MASK 0xfffint ShowError(int ec);long FileLength(char* fname);#endif@
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?