⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 debug.h

📁 libaal-1.0.5.tar.gz reiser4progs编译时需要
💻 H
字号:
/* Copyright (C) 2001, 2002, 2003 by Hans Reiser, licensing governed by   libaal/COPYING.      debug.h -- asserts implementation. */#ifndef AAL_DEBUG_H#define AAL_DEBUG_H#ifdef HAVE_CONFIG_H#  include <config.h>#endifextern void __actual_bug(char *hint, char *file, int line, 			 char *func, char *text, ...);extern void __actual_assert(char *hint, int cond, char *text,			    char *file, int line, char *func);#if !defined(ENABLE_MINIMAL) && defined(ENABLE_DEBUG)#ifdef __GNUC__#define aal_bug(hint, text, list...)         \    	__actual_bug(hint,                   \		     __FILE__,		     \		     __LINE__,		     \		     __PRETTY_FUNCTION__,    \		     text,		     \		     ##list)#define aal_assert(hint, cond)               \    	__actual_assert(hint,                \			cond,		     \			#cond,		     \			__FILE__,	     \			__LINE__,	     \			__PRETTY_FUNCTION__)#else#define aal_bug(hint, text, list...)         \    	__actual_bug(hint,                   \		     "unknown",		     \		     0,		             \		     "unknown",              \		     text,		     \		     ##list)#define aal_assert(hint, cond)               \	__actual_assert(hint, cond,          \			#cond,		     \			"unknown",	     \			0,		     \			"unknown")#endif#else#define aal_bug(hint, text, list...)#define aal_assert(hint, cond)#endifextern assert_handler_t aal_assert_get_handler(void);extern void aal_assert_set_handler(assert_handler_t handler);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -