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