📄 debug.h,v
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -