1*b5677b36Schristos /*	$NetBSD: res_debug.h,v 1.1.1.1 2009/04/12 15:33:55 christos Exp $	*/
2*b5677b36Schristos 
3*b5677b36Schristos /*
4*b5677b36Schristos  * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
5*b5677b36Schristos  * Copyright (c) 1999 by Internet Software Consortium.
6*b5677b36Schristos  *
7*b5677b36Schristos  * Permission to use, copy, modify, and distribute this software for any
8*b5677b36Schristos  * purpose with or without fee is hereby granted, provided that the above
9*b5677b36Schristos  * copyright notice and this permission notice appear in all copies.
10*b5677b36Schristos  *
11*b5677b36Schristos  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
12*b5677b36Schristos  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13*b5677b36Schristos  * MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR
14*b5677b36Schristos  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15*b5677b36Schristos  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16*b5677b36Schristos  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
17*b5677b36Schristos  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18*b5677b36Schristos  */
19*b5677b36Schristos 
20*b5677b36Schristos #ifndef _RES_DEBUG_H_
21*b5677b36Schristos #define _RES_DEBUG_H_
22*b5677b36Schristos 
23*b5677b36Schristos #ifndef DEBUG
24*b5677b36Schristos #   define Dprint(cond, args) /*empty*/
25*b5677b36Schristos #   define DprintQ(cond, args, query, size) /*empty*/
26*b5677b36Schristos #   define Aerror(statp, file, string, error, address) /*empty*/
27*b5677b36Schristos #   define Perror(statp, file, string, error) /*empty*/
28*b5677b36Schristos #else
29*b5677b36Schristos #   define Dprint(cond, args) if (cond) {fprintf args;} else {}
30*b5677b36Schristos #   define DprintQ(cond, args, query, size) if (cond) {\
31*b5677b36Schristos 			fprintf args;\
32*b5677b36Schristos 			res_pquery(statp, query, size, stdout);\
33*b5677b36Schristos 		} else {}
34*b5677b36Schristos #endif
35*b5677b36Schristos 
36*b5677b36Schristos #endif /* _RES_DEBUG_H_ */
37*b5677b36Schristos /*! \file */
38