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