error.h

来自「这是关于覆盖网的各种负载均衡算法的程序。好好研究」· C头文件 代码 · 共 36 行

H
36
字号
/* $Id: error.h,v 1.5 2005/08/02 19:35:49 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 + =
减小字号Ctrl + -
显示快捷键?