186d7f5d3SJohn Marino /* 286d7f5d3SJohn Marino * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") 386d7f5d3SJohn Marino * Copyright (c) 1999 by Internet Software Consortium. 486d7f5d3SJohn Marino * 586d7f5d3SJohn Marino * Permission to use, copy, modify, and distribute this software for any 686d7f5d3SJohn Marino * purpose with or without fee is hereby granted, provided that the above 786d7f5d3SJohn Marino * copyright notice and this permission notice appear in all copies. 886d7f5d3SJohn Marino * 986d7f5d3SJohn Marino * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES 1086d7f5d3SJohn Marino * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 1186d7f5d3SJohn Marino * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR 1286d7f5d3SJohn Marino * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 1386d7f5d3SJohn Marino * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 1486d7f5d3SJohn Marino * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 1586d7f5d3SJohn Marino * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 1686d7f5d3SJohn Marino */ 1786d7f5d3SJohn Marino 1886d7f5d3SJohn Marino #ifndef _RES_DEBUG_H_ 1986d7f5d3SJohn Marino #define _RES_DEBUG_H_ 2086d7f5d3SJohn Marino 2186d7f5d3SJohn Marino #ifndef DEBUG 2286d7f5d3SJohn Marino # define Dprint(cond, args) /*empty*/ 2386d7f5d3SJohn Marino # define DprintQ(cond, args, query, size) /*empty*/ 2486d7f5d3SJohn Marino # define Aerror(statp, file, string, error, address) /*empty*/ 2586d7f5d3SJohn Marino # define Perror(statp, file, string, error) /*empty*/ 2686d7f5d3SJohn Marino #else 2786d7f5d3SJohn Marino # define Dprint(cond, args) if (cond) {fprintf args;} else {} 2886d7f5d3SJohn Marino # define DprintQ(cond, args, query, size) if (cond) {\ 2986d7f5d3SJohn Marino fprintf args;\ 3086d7f5d3SJohn Marino res_pquery(statp, query, size, stdout);\ 3186d7f5d3SJohn Marino } else {} 3286d7f5d3SJohn Marino #endif 3386d7f5d3SJohn Marino 3486d7f5d3SJohn Marino #endif /* _RES_DEBUG_H_ */ 3586d7f5d3SJohn Marino /*! \file */ 36