debug.h

来自「libaal-1.0.5.tar.gz reiser4progs编译时需要」· C头文件 代码 · 共 64 行

H
64
字号
/* 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 + =
减小字号Ctrl + -
显示快捷键?