d_printf.h

来自「一个学习SNMP项目:tmoerlan.」· C头文件 代码 · 共 35 行

H
35
字号
/* $Id: d_printf.h,v 1.2 2003/09/17 11:26:10 tmoerlan Exp $ */#ifndef _SNAP_DPRINTF_H_#define _SNAP_DPRINTF_H_#include <stdio.h>/*	Note on using de debugging messages	define NDEBUG to disable all debugging messages	define DEBUG_TIMED_ALL to timestap all messages	NB NDEBUG supercedes DEBUG_TIMED_ALL	to globally define values add the define to Makefile.am as follows:	add -D[OPTION] to AM_CFLAGS in the corresponding directory*/#ifndef NDEBUGint sysctl_snap_debug_level;void set_debug_level(void);void set_debug_level_int(int);void d_printf(int , char* , ...); 		/* print messages */void d_printf_timed(int , char* , ...); /* print timed messages */#else#define d_printf(lvl,fmt,arg...)#define d_printf_timed(lvl,fmt,arg...)#endif /* !NDEBUG */#endif /* !_SNAP_DPRINTF_H_ */

⌨️ 快捷键说明

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