source: rtems-libbsd/freebsd/lib/libc/resolv/res_debug.h

6-freebsd-12
Last change on this file was 18fa92c, checked in by Sebastian Huber <sebastian.huber@…>, on 08/20/18 at 13:53:03

Update to FreeBSD head 2018-02-01

Git mirror commit d079ae0442af8fa3cfd6d7ede190d04e64a2c0d4.

Update #3472.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/*-
2 * SPDX-License-Identifier: ISC
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 * $FreeBSD$
20 */
21
22#ifndef _RES_DEBUG_H_
23#define _RES_DEBUG_H_
24
25#ifndef DEBUG
26#   define Dprint(cond, args) /*empty*/
27#   define DprintQ(cond, args, query, size) /*empty*/
28#   define Aerror(statp, file, string, error, address) /*empty*/
29#   define Perror(statp, file, string, error) /*empty*/
30#else
31#   define Dprint(cond, args) if (cond) {fprintf args;} else {}
32#   define DprintQ(cond, args, query, size) if (cond) {\
33                        fprintf args;\
34                        res_pquery(statp, query, size, stdout);\
35                } else {}
36#endif
37
38#endif /* _RES_DEBUG_H_ */
39/*! \file */
Note: See TracBrowser for help on using the repository browser.