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