1*f14fb602SLionel Sambuc /* $NetBSD: res_debug.h,v 1.2 2012/03/13 21:13:43 christos Exp $ */ 22fe8fb19SBen Gras 32fe8fb19SBen Gras /* 42fe8fb19SBen Gras * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") 52fe8fb19SBen Gras * Copyright (c) 1999 by Internet Software Consortium. 62fe8fb19SBen Gras * 72fe8fb19SBen Gras * Permission to use, copy, modify, and distribute this software for any 82fe8fb19SBen Gras * purpose with or without fee is hereby granted, provided that the above 92fe8fb19SBen Gras * copyright notice and this permission notice appear in all copies. 102fe8fb19SBen Gras * 112fe8fb19SBen Gras * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES 122fe8fb19SBen Gras * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 132fe8fb19SBen Gras * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR 142fe8fb19SBen Gras * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 152fe8fb19SBen Gras * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 162fe8fb19SBen Gras * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 172fe8fb19SBen Gras * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 182fe8fb19SBen Gras */ 192fe8fb19SBen Gras 202fe8fb19SBen Gras #ifndef _RES_DEBUG_H_ 212fe8fb19SBen Gras #define _RES_DEBUG_H_ 222fe8fb19SBen Gras 232fe8fb19SBen Gras #ifndef DEBUG 242fe8fb19SBen Gras # define Dprint(cond, args) /*empty*/ 252fe8fb19SBen Gras # define DprintQ(cond, args, query, size) /*empty*/ 262fe8fb19SBen Gras # define Aerror(statp, file, string, error, address) /*empty*/ 272fe8fb19SBen Gras # define Perror(statp, file, string, error) /*empty*/ 282fe8fb19SBen Gras #else 292fe8fb19SBen Gras # define Dprint(cond, args) if (cond) {fprintf args;} else {} 302fe8fb19SBen Gras # define DprintQ(cond, args, query, size) if (cond) {\ 312fe8fb19SBen Gras fprintf args;\ 32*f14fb602SLionel Sambuc res_pquery(statp, (query), (int)(size), stdout);\ 332fe8fb19SBen Gras } else {} 342fe8fb19SBen Gras #endif 352fe8fb19SBen Gras 362fe8fb19SBen Gras #endif /* _RES_DEBUG_H_ */ 372fe8fb19SBen Gras /*! \file */ 38