📄 error.h
字号:
/* $Id: error.h,v 1.1 2006-08-09 15:20:54 jonathan Exp $ * Jonathan Ledlie, Harvard University. * Copyright 2005. All rights reserved. */#ifndef ERROR_H#define ERROR_H#include <stdio.h>#include <stdlib.h>// Comment out to remove all debugging paths#define DEBUG 1#ifdef DEBUGextern bool debug;#define DEBUG_P(c) if (debug) printf c;#define IF_DEBUG(c) if (debug) c;#else#define DEBUG_P(c) #define IF_DEBUG(c)#endif#define ASSERT(c) { \ if (!(c)) { \ fprintf (stderr, \ "ASSERTION FAILURE: %s:%d\n", __FILE__, __LINE__); \ fprintf (stderr, "\tfailed condition: %s\n", #c); \ exit (-1); \ } \}//#define ASSERT(c) #endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -