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