1156952Sume/* 2156952Sume * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") 3156952Sume * Copyright (c) 1999 by Internet Software Consortium. 4156952Sume * 5156952Sume * Permission to use, copy, modify, and distribute this software for any 6156952Sume * purpose with or without fee is hereby granted, provided that the above 7156952Sume * copyright notice and this permission notice appear in all copies. 8156952Sume * 9156952Sume * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES 10156952Sume * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11156952Sume * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR 12156952Sume * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13156952Sume * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14156952Sume * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 15156952Sume * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16156952Sume */ 17156952Sume 18156952Sume#ifndef _RES_DEBUG_H_ 19156952Sume#define _RES_DEBUG_H_ 20156952Sume 21156952Sume#ifndef DEBUG 22156952Sume# define Dprint(cond, args) /*empty*/ 23156952Sume# define DprintQ(cond, args, query, size) /*empty*/ 24156952Sume# define Aerror(statp, file, string, error, address) /*empty*/ 25156952Sume# define Perror(statp, file, string, error) /*empty*/ 26156952Sume#else 27156952Sume# define Dprint(cond, args) if (cond) {fprintf args;} else {} 28156952Sume# define DprintQ(cond, args, query, size) if (cond) {\ 29156952Sume fprintf args;\ 30156952Sume res_pquery(statp, query, size, stdout);\ 31156952Sume } else {} 32156952Sume#endif 33156952Sume 34156952Sume#endif /* _RES_DEBUG_H_ */ 35170242Sume/*! \file */ 36